-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (40 loc) · 1.41 KB
/
Copy pathrelease.yml
File metadata and controls
50 lines (40 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Release
on:
push:
tags:
- "v*.*.*"
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install runtime and build dependencies
run: pip install -e ".[dev]"
- name: Extract bare version (strip leading v)
id: ver
run: echo "version=$('${{ github.ref_name }}'.TrimStart('v'))" >> $env:GITHUB_OUTPUT
- name: Generate icons
run: python scripts/generate_icons.py
- name: Build Windows artifact
run: python scripts/build.py
- name: Smoke test — --version
run: |
$output = & dist\EleitorUM\EleitorUM.exe --version 2>&1
if ($LASTEXITCODE -ne 0) {
Write-Error "EleitorUM.exe --version exited $LASTEXITCODE"
exit 1
}
if ($output -notmatch [regex]::Escape("EleitorUM ${{ steps.ver.outputs.version }}")) {
Write-Error "Version mismatch: expected 'EleitorUM ${{ steps.ver.outputs.version }}', got: $output"
exit 1
}
Write-Host "Smoke test passed: $output"
- name: Publish GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
EleitorUM-${{ steps.ver.outputs.version }}-win64.zip
EleitorUM-${{ steps.ver.outputs.version }}-win64.zip.sha256