-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (39 loc) · 1.22 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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==2.0.4
- run: python -m nuitka --standalone --enable-plugin=pyside6 --onefile --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 --clang
- uses: actions/upload-artifact@v2
with:
name: build_binary
path: dist/OSCR*
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/OSCR*