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:
1 file changed
+3
-3
@@ -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"
|
||||
|
||||
|
||||
Reference in new issue
Block a user