Skip to content

Commit

Permalink
Work around 'version' containing the release name
Browse files Browse the repository at this point in the history
  • Loading branch information
recke96 committed Mar 16, 2024
1 parent 4ce088e commit a75c68c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ jobs:
use_github_release_notes: true
outputs:
tag_name: ${{ steps.release.outputs.tag_name }}
version: ${{ steps.release.outputs.version }}

package:
needs: version
Expand All @@ -55,7 +54,7 @@ jobs:
- name: Build & Package
run: ./gradlew packageDistributionForCurrentOS --no-daemon
env:
RELEASE_VERSION: ${{ needs.version.outputs.version }}
RELEASE_VERSION: ${{ needs.version.outputs.tag_name }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion desktop-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ compose.desktop {
nativeDistributions {
targetFormats(TargetFormat.Deb, TargetFormat.Exe)
packageName = rootProject.name
version = System.getenv("RELEASE_VERSION") ?: "0.0.0"
version = System.getenv("RELEASE_VERSION")?.trimStart('v') ?: "0.0.0"
description = "Tournament planner for HEMA tournaments of the club 'Fior della Spada'"
copyright = "© 2024 Jakob Ecker. All rights reserved."
licenseFile = rootProject.file("LICENCE")
Expand Down

0 comments on commit a75c68c

Please sign in to comment.