Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -344,20 +344,29 @@ 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)
if [ -z "$PREVIOUS_TAG" ] || [ "$PREVIOUS_TAG" = "$VERSION" ]; then
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
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down