Skip to content

Commit b4b2966

Browse files
committed
first attempt to use github workflows, it will replace appveyor when releasing versions.
1 parent f422728 commit b4b2966

File tree

3 files changed

+47
-30
lines changed

3 files changed

+47
-30
lines changed

.github/workflows/upload-on-tag.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Upload on new tags
2+
3+
on:
4+
push:
5+
tags:
6+
'*'
7+
8+
jobs:
9+
buildAndUpload:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v2
14+
- name: Set up Python 3.8
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
- name: Install dependencies
19+
run: |
20+
pip install scons markdown
21+
sudo apt update
22+
sudo apt install gettext
23+
- name: Add add-on version
24+
run: |
25+
import re
26+
with open("buildVars.py", 'r+', encoding='utf-8') as f:
27+
text = f.read()
28+
version = "${{ github.ref }}".split("/")[-1]
29+
text = re.sub('"addon_version" *:.*,', '"addon_version" : "%s",' % version, text)
30+
f.seek(0)
31+
f.write(text)
32+
f.truncate()
33+
shell: python
34+
- name: Build add-on
35+
run: scons
36+
- name: Calculate sha256
37+
run: sha256sum *.nvda-addon >> changelog.md
38+
- name: Release
39+
uses: softprops/action-gh-release@v1
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
with:
43+
files: |
44+
*.nvda-addon
45+
body_path: changelog.md
46+
prerelease: ${{ endsWith(github.ref, '-dev') }}

appveyor.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

changelog.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix security issue on secure screens. Updated support for NVDA 2022.

0 commit comments

Comments
 (0)