Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mzanm committed Mar 22, 2024
1 parent 75653f9 commit 9982196
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .github/workflows/build_addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,17 +9,17 @@ jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade scons markdown
sudo apt-get update -y
sudo apt-get install -y gettext
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade scons markdown
- name: Extract Changelog
run: |
import re
Expand All @@ -36,12 +36,16 @@ jobs:
f.write(string)
shell: python
- name: Build add-on
run: scons
run: |
scons
scons pot
- name: Create release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
files: ./*.nvda-addon
body_path: release_description.md
files: |
./*.nvda-addon
./*.pot
body_path: release_description.md
prerelease: contains(github.ref, '-pre')
fail_on_unmatched_files: true

0 comments on commit 9982196

Please sign in to comment.