File tree 6 files changed +44
-28
lines changed
6 files changed +44
-28
lines changed Original file line number Diff line number Diff line change 1
- name : Build
1
+ name : Build Windows
2
2
3
3
on : [push]
4
4
23
23
- name : Upload Artifact
24
24
uses : actions/upload-artifact@v4
25
25
with :
26
- name : disabilitydude
26
+ name : disabilitydude.zip
27
27
path : dist/*
28
+ retention-days : 5
Original file line number Diff line number Diff line change
1
+ name : Build and Attach Artifacts to Release
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+
7
+ jobs :
8
+
9
+ build-release-artifacts :
10
+ runs-on : windows-latest
11
+
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v4
17
+ with :
18
+ python-version : ' 3.10'
19
+ cache : ' pip'
20
+ - run : pip install -r requirements.txt
21
+
22
+ - name : Build Executable
23
+ run : |
24
+ pyinstaller --paths=. --name 'disabilitydude' --noconfirm --onedir --windowed --distpath ".\dist" --add-data "./config;config/" "./src/main.py"
25
+
26
+ - name : Upload Artifact
27
+ uses : actions/upload-artifact@v4
28
+ with :
29
+ name : disabilitydude.zip
30
+ path : dist/*
31
+ retention-days : 5
32
+
33
+ - name : Upload Release Asset
34
+ uses : actions/upload-release-asset@v1
35
+ env :
36
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
37
+ with :
38
+ upload_url : ${{ github.event.release.upload_url }}
39
+ asset_path : ./dist/disabilitydude.zip
40
+ asset_name : disabilitydude.zip
41
+ asset_content_type : application/zip
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments