fix: Use dynamic tag for automatic release creation
This commit is contained in:
6
.github/workflows/ci-cd.yml
vendored
6
.github/workflows/ci-cd.yml
vendored
@@ -144,7 +144,7 @@ jobs:
|
|||||||
id: get_tag
|
id: get_tag
|
||||||
run: |
|
run: |
|
||||||
# Get the latest tag, default to v1.0.0 if none exist
|
# Get the latest tag, default to v1.0.0 if none exist
|
||||||
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v1.0.0")
|
latest_tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v2.5.0")
|
||||||
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
|
echo "latest_tag=$latest_tag" >> $GITHUB_OUTPUT
|
||||||
echo "Found latest tag: $latest_tag"
|
echo "Found latest tag: $latest_tag"
|
||||||
|
|
||||||
@@ -159,8 +159,8 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
tag_name: v1.1.0
|
tag_name: ${{ steps.get_tag.outputs.latest_tag }}
|
||||||
name: Release v1.1.0 - Multilingual & Stability Improvements
|
name: Release ${{ steps.get_tag.outputs.latest_tag }}
|
||||||
body_path: CHANGELOG_RELEASE.md
|
body_path: CHANGELOG_RELEASE.md
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|||||||
Reference in New Issue
Block a user