Adapts release workflow to accept semantic versions

Updates the release workflow to correctly identify semantic versions and removes the assumption of a 'v' prefix on release tags.
This change allows the workflow to trigger on any tag that follows the semantic versioning format *.*.*, providing greater flexibility in versioning schemes.
This commit is contained in:
AlexKucera committed 2025-11-02 20:10:01 +01:00
1 parent 4ce6fb588d
commit 126600255f
1 file changed
+3 -3
+3 -3
View File
@@ -3,7 +3,7 @@ name: Release
on:
push:
tags:
- 'v*.*.*'
- '*.*.*'
jobs:
create-release:
@@ -17,8 +17,8 @@ jobs:
- name: Extract version from tag
id: version
run: |
# Remove 'v' prefix from tag to get version number
VERSION=${GITHUB_REF#refs/tags/v}
# Extract version number from tag (no 'v' prefix)
VERSION=${GITHUB_REF#refs/tags/}
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"