File tree Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Expand file tree Collapse file tree 1 file changed +19
-15
lines changed Original file line number Diff line number Diff line change 1
- name : Generate release ( Windows)
1
+ name : Generate Windows Installer
2
2
3
3
on :
4
- pull_request :
5
- push :
6
- tags :
7
- - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
4
+ release :
5
+ types : [ published ]
6
+
7
+ permissions :
8
+ contents : write
8
9
9
10
jobs :
10
- generate-release :
11
+ generate-windows-installer :
11
12
12
13
runs-on : windows-latest
13
14
14
- strategy :
15
- fail-fast : false
16
- matrix :
17
- python-version : ["3.13"]
18
-
19
15
steps :
20
- - uses : actions/checkout@v4
21
- - name : Set up Python ${{ matrix.python-version }}
16
+ - name : Git Checkout ${{github.event.release.tag_name}}
17
+ uses : actions/checkout@v4
18
+
19
+ - name : Set up Python
22
20
uses : actions/setup-python@v5
23
21
with :
24
- python-version : ${{ matrix.python-version }}
22
+ python-version : ' 3.13 '
25
23
26
24
- name : Install dependencies
27
25
run : |
38
36
path : tools/windows-installer/turing-system-monitor.iss
39
37
options : /O+
40
38
41
- - name : Archive a screenshot
39
+ - name : ' 📦 Archive Windows installer '
42
40
uses : actions/upload-artifact@v4
43
41
with :
44
42
path : tools/windows-installer/Output/turing-system-monitor_*.exe
43
+
44
+ - name : ' 📩 Publish Windows installer to Release'
45
+ run : |
46
+ gh release upload ${{github.event.release.tag_name}} turing-system-monitor_*.exe
47
+ env :
48
+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments