diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ab8daee..69aeb23 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -344,13 +344,21 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + ref: ${{ github.event.inputs.tag || github.ref }} - name: Get version and release info id: release_info run: | - VERSION="${{ github.ref }}" - VERSION="${VERSION#refs/tags/}" + # Extract version based on trigger type + if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then + VERSION="${{ github.event.inputs.tag }}" + else + VERSION="${{ github.ref }}" + VERSION="${VERSION#refs/tags/}" + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT + echo "Detected version: $VERSION" # Get the previous tag for changelog PREVIOUS_TAG=$(git tag --sort=-version:refname | grep -A1 "^$VERSION$" | tail -n1) @@ -358,6 +366,7 @@ jobs: PREVIOUS_TAG=$(git tag --sort=-version:refname | head -n2 | tail -n1) fi echo "previous_tag=$PREVIOUS_TAG" >> $GITHUB_OUTPUT + echo "Previous tag: $PREVIOUS_TAG" - name: Generate release notes id: release_notes diff --git a/CHANGELOG.md b/CHANGELOG.md index 745955d..74e0dfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## [v1.2.6] - 2025-09-14 + +### Fixed + +- Resolve version extraction issue in deploy workflow release job (00458cf) + +### Maintenance + +- Prepare v1.2.6 hotfix (841d94f) + + ## [v1.2.5] - 2025-09-14 ### Added