File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 push :
55 tags :
66 - ' tkinter_v*' # Push events with a tag that starts with 'tkinter_v'
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
711
812jobs :
913 build :
1014 runs-on : ubuntu-latest
1115 steps :
12- - uses : actions/checkout@v2
16+ - uses : actions/checkout@v6.0.2
1317
14- - name : Package Application
15- uses : JackMcKew/pyinstaller-action-windows@main
18+ - name : Package Application using Cythinst64
19+ uses : PlohnenSoftware/Cythinst64@v2.1
1620 with :
1721 path : src
1822
@@ -32,10 +36,19 @@ jobs:
3236 - name : Zip output folder
3337 run : zip -r familiada.zip familiada_all
3438
39+ # Step to upload the zipped folder as a workflow artifact
40+ - name : Upload artifact
41+ uses : actions/upload-artifact@v7.0.1
42+ with :
43+ name : familiada-tkinter
44+ path : familiada.zip
45+ if-no-files-found : error
46+
3547 # Step to create a release and upload the zipped folder as an asset
3648 - name : Create Release
49+ if : startsWith(github.ref, 'refs/tags/tkinter_v')
3750 id : create_release
38- uses : softprops/action-gh-release@v1
51+ uses : softprops/action-gh-release@v3.0.0
3952 with :
4053 files : familiada.zip
4154 env :
Original file line number Diff line number Diff line change 1+ name : Package Familiada App with Pyinstaller
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : write
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v6.0.2
17+ - name : Package Application using Cythinst64
18+ uses : PlohnenSoftware/Cythinst64@v2.1
19+ with :
20+ path : src
21+ cython_out : prec
22+
23+ # Step to create a flat directory for carrying output files
24+ - name : Create output directory
25+ run : mkdir familiada
26+
27+ # Step to move compiled Windows binaries
28+ - name : Move Windows binaries
29+ run : mv src/dist/windows/* familiada/
30+
31+ # Step to move data file
32+ - name : Move data file
33+ run : mv dane.csv familiada/
34+
35+ # Step to zip the flat folder
36+ - name : Zip output folder
37+ run : zip -r familiada.zip familiada
38+
39+ # Step to upload the zipped folder as a workflow artifact
40+ - name : Upload artifact
41+ uses : actions/upload-artifact@v7.0.1
42+ with :
43+ name : familiada
44+ path : familiada.zip
45+ if-no-files-found : error
46+
47+ # Step to create a release and upload the zipped folder as an asset
48+ - name : Create Release
49+ if : startsWith(github.ref, 'refs/tags/v')
50+ id : create_release
51+ uses : softprops/action-gh-release@v3.0.0
52+ with :
53+ files : familiada.zip
54+ env :
55+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments