Skip to content

Commit fd911aa

Browse files
author
Clemens Brummer
committed
ops: add gtihub release workflow
1 parent f30893d commit fd911aa

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Build Windows UI
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*.*.*'
7+
8+
jobs:
9+
build:
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v5
15+
16+
- name: Set up Python 3.13
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.13'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install -r requirements.txt
25+
pip install -e .
26+
27+
- name: Build UI
28+
run: |
29+
ui\package.bat
30+
31+
- name: Set version from tag
32+
run: echo "VERSION=${{ github.ref_name }}" >> $GITHUB_ENV
33+
34+
- name: Rename zip to include version
35+
shell: pwsh
36+
run: |
37+
$src = "ui/DEUMeldeformularKonverter.zip"
38+
$dst = "ui/DEUMeldeformularKonverter_${env:VERSION}.zip"
39+
if (Test-Path $src) {
40+
Move-Item -LiteralPath $src -Destination $dst
41+
} else {
42+
Write-Error "Source file not found: $src"
43+
exit 1
44+
}
45+
46+
- name: Upload Release
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: DEUMeldeformularKonverter ${{ env.VERSION }}
50+
path: ui/DEUMeldeformularKonverter_${{ env.VERSION }}.zip

0 commit comments

Comments
 (0)