Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
deefrawley committed Jul 20, 2021
2 parents 328d52e + d03de81 commit d52f0ea
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/Publish Release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish Release

on:
workflow_dispatch:
push:
branches: [ main ]
paths-ignore:
- .github/workflows/*

jobs:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: 'plugin.json'
prop_path: 'Version'
- run: echo ${{steps.version.outputs.prop}}
- name: Install dependencies
run: |
sudo apt-get install -y gettext
python -m pip install --upgrade pip
pip install -r ./requirements.txt -t ./lib
msgfmt ./plugin/translations/en/LC_MESSAGES/messages.po -o ./plugin/translations/en/LC_MESSAGES/messages.mo
msgfmt ./plugin/translations/zh/LC_MESSAGES/messages.po -o ./plugin/translations/zh/LC_MESSAGES/messages.mo
zip -r Flow.Launcher.Plugin.GenConverter.zip . -x '*.git*'
- name: Publish
if: success() && github.ref == 'refs/heads/main'
uses: softprops/action-gh-release@v1
with:
files: 'Flow.Launcher.Plugin.GenConverter.zip'
tag_name: "v${{steps.version.outputs.prop}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d52f0ea

Please sign in to comment.