Skip to content

Commit

Permalink
Try adding the workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraust committed Feb 23, 2024
1 parent cedf6ef commit c1902d9
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Build Python Distribution

on: push

jobs:
build_binary:
# if: startsWith(github.ref, 'refs/tags/v')
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.10"

- run: pip install .
- run: pip install nuitka
- run: python -m nuitka main.py --onefile --enable-plugin=pyqt6 --noinclude-qt-translations --disable-console --output-dir=dist --output-filename=OSCR --assume-yes-for-downloads
- uses: actions/upload-artifact@v2
with:
name: build_binary
path: dist/*

release:
if: startsWith(github.ref, 'refs/tags/v')
needs: [ build_binary ]
name: Create release
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: build_binary
path: dist
- name: Create release
uses: ncipollo/release-action@v1
with:
artifacts: dist/*

0 comments on commit c1902d9

Please sign in to comment.