Skip to content

Commit 2c1ce6d

Browse files
committed
Attach installer to published release
1 parent 8fea2a7 commit 2c1ce6d

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed
Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,25 @@
1-
name: Generate release (Windows)
1+
name: Generate Windows Installer
22

33
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
89

910
jobs:
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: |
@@ -38,7 +36,13 @@ jobs:
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 }}

0 commit comments

Comments
 (0)