-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (53 loc) Β· 1.46 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Build & Release App π
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
windows:
name: Windows π
runs-on: windows-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v4
- name: Setup Python π
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
cache-dependency-path: requirements*.txt
- name: Install Dependencies β
run: pip install -r requirements.txt
- name: Compile With Nuitka π’
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: src/main.py
mode: app
enable-plugins: tk-inter
- name: Change File Format β¨
run: cp build/main.exe Py-Screen-Saver-win.scr
- name: Upload Artifact π€
uses: actions/upload-artifact@v4
with:
name: windows
path: Py-Screen-Saver-win.scr
release:
needs: windows
name: Release π
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v4
- name: Download Artifact π₯
uses: actions/download-artifact@v4
with:
name: windows
path: builds
- name: Create Release β
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
files: builds/Py-Screen-Saver-win.scr