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:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'v*.*.*'
|
- '*.*.*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-release:
|
create-release:
|
||||||
@@ -17,8 +17,8 @@ jobs:
|
|||||||
- name: Extract version from tag
|
- name: Extract version from tag
|
||||||
id: version
|
id: version
|
||||||
run: |
|
run: |
|
||||||
# Remove 'v' prefix from tag to get version number
|
# Extract version number from tag (no 'v' prefix)
|
||||||
VERSION=${GITHUB_REF#refs/tags/v}
|
VERSION=${GITHUB_REF#refs/tags/}
|
||||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
echo "Version: $VERSION"
|
echo "Version: $VERSION"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user