Skip to content

Commit 1a36dba

Browse files
committed
build(ci): add version to zip
1 parent 3d064ab commit 1a36dba

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,21 @@ jobs:
3939
copy dist\BetterKnobVolumeMixer.exe release\
4040
copy dist\hotkeyfinder.exe release\
4141
copy src\config.ini release\
42+
43+
- name: Get version from tag
44+
id: get_version
45+
shell: powershell
46+
run: |
47+
$tag = "${{ github.ref_name }}"
48+
echo "VERSION=$tag" >> $env:GITHUB_OUTPUT
4249
4350
- name: Create ZIP
44-
run: Compress-Archive -Path release\* -DestinationPath dist/betterknob_windows_x86_64.zip
51+
run: Compress-Archive -Path release\* -DestinationPath dist/betterknob_windows_x86_64_${{ steps.get_version.outputs.VERSION }}.zip
4552

4653
- uses: actions/upload-artifact@v4
4754
with:
48-
name: betterknob_windows_x86_64
49-
path: dist/betterknob_windows_x86_64.zip
55+
name: betterknob_windows_x86_64_${{ steps.get_version.outputs.VERSION }}
56+
path: dist/betterknob_windows_x86_64_${{ steps.get_version.outputs.VERSION }}.zip
5057

5158
publish:
5259
needs: [windows]
@@ -62,4 +69,4 @@ jobs:
6269
draft: true
6370
prerelease: false
6471
files: |
65-
betterknob_windows_x86_64/*
72+
betterknob_windows_x86_64_*/*

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "BetterKnob"
33
description = "A better volume knob for controlling your computer's audio"
4-
version = "1.2.0"
4+
version = "1.2.1"
55
license = "GPL-3.0-only"
66
readme = "README.md"
77

0 commit comments

Comments
 (0)