-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated sconstruct and github workflow to support compatibility with …
…nvda.org add-on store. updated readme download section to get the correct asset.
- Loading branch information
Showing
6 changed files
with
241 additions
and
60 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 |
---|---|---|
@@ -1,25 +1,31 @@ | ||
permissions: | ||
contents: write | ||
name: Upload on new tags | ||
|
||
on: | ||
push: | ||
tags: | ||
['*'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
buildAndUpload: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Set up Python 3.8 | ||
uses: actions/[email protected] | ||
- run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.9 | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install scons markdown | ||
sudo apt update | ||
sudo apt install gettext | ||
- name: Add add-on version | ||
run: | | ||
import re | ||
|
@@ -30,17 +36,36 @@ jobs: | |
f.seek(0) | ||
f.write(text) | ||
f.truncate() | ||
shell: python | ||
shell: python | ||
|
||
- name: Build add-on | ||
run: scons | ||
- name: Calculate sha256 | ||
run: sha256sum *.nvda-addon >> changelog.md | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: packaged_addon | ||
path: | | ||
./*.nvda-addon | ||
./*.json | ||
upload_release: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
needs: ["build"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: download releases files | ||
uses: actions/download-artifact@v3 | ||
- name: Display structure of downloaded files | ||
run: ls -R | ||
|
||
- 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') }} | ||
packaged_addon/*.nvda-addon | ||
packaged_addon/*.json | ||
fail_on_unmatched_files: true | ||
prerelease: ${{ contains(github.ref, '-') }} |
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 |
---|---|---|
|
@@ -8,7 +8,7 @@ msgid "" | |
msgstr "" | ||
"Project-Id-Version: 'EnhancedPhoneticReading' '1.1.3'\n" | ||
"Report-Msgid-Bugs-To: '[email protected]'\n" | ||
"POT-Creation-Date: 2022-07-25 10:36-0600\n" | ||
"POT-Creation-Date: 2023-04-15 09:26-0600\n" | ||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" | ||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" | ||
"Language-Team: LANGUAGE <[email protected]>\n" | ||
|
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
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
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
Oops, something went wrong.