-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first attempt to use github workflows, it will replace appveyor when …
…releasing versions.
- Loading branch information
Showing
3 changed files
with
47 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Upload on new tags | ||
|
||
on: | ||
push: | ||
tags: | ||
'*' | ||
|
||
jobs: | ||
buildAndUpload: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- 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: Add add-on version | ||
run: | | ||
import re | ||
with open("buildVars.py", 'r+', encoding='utf-8') as f: | ||
text = f.read() | ||
version = "${{ github.ref }}".split("/")[-1] | ||
text = re.sub('"addon_version" *:.*,', '"addon_version" : "%s",' % version, text) | ||
f.seek(0) | ||
f.write(text) | ||
f.truncate() | ||
shell: python | ||
- name: Build add-on | ||
run: scons | ||
- name: Calculate sha256 | ||
run: sha256sum *.nvda-addon >> changelog.md | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
files: | | ||
*.nvda-addon | ||
body_path: changelog.md | ||
prerelease: ${{ endsWith(github.ref, '-dev') }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
fix security issue on secure screens. Updated support for NVDA 2022. |