File tree Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Expand file tree Collapse file tree 1 file changed +41
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build application on release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' v*'
7
+
8
+ jobs :
9
+ build :
10
+
11
+ runs-on : windows-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : 3.10.1
19
+
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements.txt
24
+ pip install pyinstaller
25
+
26
+ - name : Convert python files to executable
27
+ run : pyinstaller main.spec
28
+
29
+ - name : Compress files
30
+ uses : vimtor/action-zip@v1
31
+ with :
32
+ files : dist/main/
33
+ dest : BulkStartStop_portable.zip
34
+
35
+ - name : Create Release
36
+ uses : softprops/action-gh-release@v1
37
+ env :
38
+ GITHUB_TOKEN : ${{ github.token }}
39
+ with :
40
+ name : Release ${{ github.ref_name }}
41
+ files : BulkStartStop_portable.zip
You can’t perform that action at this time.
0 commit comments