Skip to content

Commit

Permalink
first attempt to use github workflows, it will replace appveyor when …
Browse files Browse the repository at this point in the history
…releasing versions.
  • Loading branch information
davidacm committed Mar 1, 2022
1 parent f422728 commit b4b2966
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 30 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/upload-on-tag.yaml
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') }}
30 changes: 0 additions & 30 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix security issue on secure screens. Updated support for NVDA 2022.

0 comments on commit b4b2966

Please sign in to comment.