diff --git a/.github/workflows/upload-on-tag.yaml b/.github/workflows/upload-on-tag.yaml new file mode 100644 index 0000000..679a742 --- /dev/null +++ b/.github/workflows/upload-on-tag.yaml @@ -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') }} diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 4607247..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,30 +0,0 @@ -version: '{branch}-{build}' -environment: - PY_PYTHON: 3.7-32 -install: -- cmd: >- - set PATH=C:\Python37\Scripts;%PATH% - - pip install wheel - - pip install scons - - pip install markdown -build_script: -- cmd: scons -artifacts: -- path: '*.nvda-addon' - name: addon - type: WebDeployPackage -before_deploy: -- ps: $env:REPO_NAME = $env:APPVEYOR_REPO_NAME.Substring($env:APPVEYOR_REPO_NAME.IndexOf('/') + 1) -deploy: -- provider: GitHub - tag: $(APPVEYOR_REPO_TAG_NAME) - release: Release $(APPVEYOR_REPO_TAG_NAME) - description: This is the release $(APPVEYOR_REPO_TAG_NAME) of the $(REPO_NAME) addon for the NVDA screen reader built and uploaded to GitHub using Appveyor. - auth_token: - secure: hwgAZezYq6+gi0L3+FGMaWOT/GBGeyVH9QqPxGSqVVGi3+VzqjMFy/9PcAMSE5cL - artifact: addon - on: - appveyor_repo_tag: true \ No newline at end of file diff --git a/changelog.md b/changelog.md new file mode 100644 index 0000000..b31b940 --- /dev/null +++ b/changelog.md @@ -0,0 +1 @@ +fix security issue on secure screens. Updated support for NVDA 2022. \ No newline at end of file