Skip to content

Commit

Permalink
Another shot at the workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraust committed Mar 16, 2024
1 parent ff76f60 commit a1b59b1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Python Distribution
on: push

jobs:
build_binary:
build_release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -20,14 +20,15 @@ jobs:
- run: pip install .
- run: pip install nuitka==2.0.4
- run: python -m nuitka --standalone --enable-plugin=pyside6 --output-filename=OSCR --output-dir=dist main.py --disable-console --assume-yes-for-downloads --noinclude-qt-translations --include-data-files=./assets/*=./assets/ --windows-icon-from-ico=./assets/oscr_icon_small.ico
- run: Compress-Archive -Path dist/main.dist/* -Destination OSCR.zip
- uses: actions/upload-artifact@v2
with:
name: build_binary
path: dist/*
name: build_release
path: OSCR.zip

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [ build_binary ]
needs: [ build_release ]
name: Create release
runs-on: ubuntu-latest
permissions:
Expand All @@ -37,9 +38,9 @@ jobs:
- name: Download
uses: actions/download-artifact@v3
with:
name: build_binary
name: build_release
path: dist
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: dist/*
artifacts: OSCR.zip

0 comments on commit a1b59b1

Please sign in to comment.