Compare commits

..

No commits in common. "e565283827fd8b707d1e85e2005df3a4d3e164ee" and "3aab5922ab36ef5b5095e8a0ba23c3105cc3a565" have entirely different histories.

View File

@ -1,9 +1,10 @@
name: Build Addon
name: build addon
on:
push:
tags:
- 'v*.*.*'
tags: ["*"]
# To build on main/master branch, uncomment the following line:
# branches: [ main , master ]
pull_request:
branches: [ main, master ]
@ -12,27 +13,28 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11']
os: [ubuntu-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- name: Set up PDM
uses: pdm-project/setup-pdm@v4
with:
python-version: '3.11'
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pdm sync -d -G build
- name: Build addon
- name: building addon
run: pdm run scons
- name: Upload build artifacts
if: success()
uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v4
with:
name: packaged_addon
path: ./*.nvda-addon
@ -40,16 +42,15 @@ jobs:
upload_release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: build
needs: ["build"]
steps:
- name: Download releases files
- uses: actions/checkout@v4
- name: download releases files
uses: actions/download-artifact@v4.1.7
with:
name: packaged_addon
- name: Display structure of downloaded files
run: tree
run: ls -R
- name: Release
uses: softprops/action-gh-release@v1