-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (37 loc) · 1.05 KB
/
build.yaml
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
name: Build MorseWriter
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11.4'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -r requirements.txt
- name: Build with PyInstaller
run: |
pyinstaller --clean MorseCodeGUI.spec
- name: Download Inno Setup
run: |
choco install innosetup --yes
- name: Build Installer
run: |
Start-Process -FilePath "C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe" -ArgumentList "MorseWriterInstaller.iss" -Wait
- name: Upload artifact
uses: actions/[email protected]
with:
name: morsewriter-installer
path: Output/MorseWriter-Installer.exe