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
22
33on :
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
89
910jobs :
10- generate-release :
11+ generate-windows-installer :
1112
1213 runs-on : windows-latest
1314
14- strategy :
15- fail-fast : false
16- matrix :
17- python-version : ["3.13"]
18-
1915 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
2220 uses : actions/setup-python@v5
2321 with :
24- python-version : ${{ matrix.python-version }}
22+ python-version : ' 3.13 '
2523
2624 - name : Install dependencies
2725 run : |
3836 path : tools/windows-installer/turing-system-monitor.iss
3937 options : /O+
4038
41- - name : Archive a screenshot
39+ - name : ' 📦 Archive Windows installer '
4240 uses : actions/upload-artifact@v4
4341 with :
4442 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