Repository navigation
75 lines (60 loc) · 1.71 KB
/
Copy pathbuild.yaml
File metadata and controls
75 lines (60 loc) · 1.71 KB
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
66
67
68
69
70
71
72
73
74
75
name: Build and Release
on:
push:
tags:
- '*'
jobs:
# ============================
# WINDOWS BUILD
# ============================
build-windows:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
- name: Build Windows executable
run: |
pyinstaller .windows/main-windows.spec --noconfirm
- name: Install Inno Setup
run: |
choco install innosetup --yes
- name: Build Windows Installer
run: |
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" .windows\installer.iss
- name: Upload Windows Installer
uses: actions/upload-artifact@v6
with:
name: PyProGen-Windows-Installer
path: .windows/output/PyProGen-Windows-Installer.exe
retention-days: 1
# ============================
# RELEASE
# ============================
release:
runs-on: ubuntu-latest
needs: [build-windows]
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Download Windows artifact
uses: actions/download-artifact@v7
with:
name: PyProGen-Windows-Installer
path: release-files/windows
- name: Create GitHub Release
uses: softprops/action-gh-release@v3
with:
files: |
release-files/windows/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}