Skip to content

Commit

Permalink
Added a Github action to create a release when uploading a tag
Browse files Browse the repository at this point in the history
  • Loading branch information
javidominguez committed Apr 16, 2022
1 parent 5ea594e commit 971fd2f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/upload-on-tag.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Upload on new tags

on:
push:
tags:
'*'

jobs:
buildAndUpload:
runs-on: ubuntu-latest
steps:
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install scons markdown
sudo apt update
sudo apt install gettext
- name: Build add-on
run: scons
- name: Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: |
*.nvda-addon
name: FEN code reader ${{ steps.get_version.outputs.VERSION }}
body_path: changelog.md
prerelease: ${{ startsWith(github.ref, 'refs/tags/dev') }}
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Brazilian Portuguese localization

0 comments on commit 971fd2f

Please sign in to comment.