mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2025-02-22 21:05:07 +00:00
upd build_addon workflow
This commit is contained in:
parent
3aab5922ab
commit
2d194e8e67
30
.github/workflows/build_addon.yml
vendored
30
.github/workflows/build_addon.yml
vendored
@ -1,10 +1,8 @@
|
||||
name: build addon
|
||||
name: Build Addon
|
||||
|
||||
on:
|
||||
push:
|
||||
tags: ["*"]
|
||||
# To build on main/master branch, uncomment the following line:
|
||||
# branches: [ main , master ]
|
||||
|
||||
pull_request:
|
||||
branches: [ main, master ]
|
||||
@ -13,28 +11,27 @@ on:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version: ['3.11']
|
||||
os: [ubuntu-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up PDM
|
||||
uses: pdm-project/setup-pdm@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pdm sync -d -G build
|
||||
|
||||
- name: building addon
|
||||
- name: Build addon
|
||||
run: pdm run scons
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
- name: Upload build artifacts
|
||||
if: success()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: packaged_addon
|
||||
path: ./*.nvda-addon
|
||||
@ -42,15 +39,16 @@ jobs:
|
||||
upload_release:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||
needs: ["build"]
|
||||
needs: build
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: download releases files
|
||||
- name: Download releases files
|
||||
uses: actions/download-artifact@v4.1.7
|
||||
with:
|
||||
name: packaged_addon
|
||||
|
||||
- name: Display structure of downloaded files
|
||||
run: ls -R
|
||||
run: tree
|
||||
|
||||
- name: Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
|
Loading…
Reference in New Issue
Block a user