Skip to content
Merged
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
34 changes: 18 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,26 +248,12 @@ jobs:
name: install-scripts
path: .

- name: Create and push release tag
run: |
VERSION="${{ github.event.inputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Create tag on current commit (version files are not committed back to main)
# The version updates exist only in the build artifacts, not in source
git tag -a "v$VERSION" -m "Release v$VERSION"
git push origin "v$VERSION"
echo "✓ Created and pushed tag v$VERSION"
echo ""
echo "Note: Version remains 'dev' in main branch source code"
echo "Released binaries and install scripts contain version $VERSION"
shell: bash

- name: Generate changelog
id: changelog
run: |
# Get commits since last release tag
# NOTE: This must run BEFORE creating the new tag, otherwise git describe
# will find the new tag and the changelog will be empty
PREVIOUS_TAG=$(git describe --abbrev=0 --tags --match "v*" 2>/dev/null || echo "")
if [ -z "$PREVIOUS_TAG" ]; then
# First release - get all commits
Expand All @@ -287,6 +273,22 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
shell: bash

- name: Create and push release tag
run: |
VERSION="${{ github.event.inputs.version }}"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"

# Create tag on current commit (version files are not committed back to main)
# The version updates exist only in the build artifacts, not in source
git tag -a "v$VERSION" -m "Release v$VERSION"
git push origin "v$VERSION"
echo "✓ Created and pushed tag v$VERSION"
echo ""
echo "Note: Version remains 'dev' in main branch source code"
echo "Released binaries and install scripts contain version $VERSION"
shell: bash

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
Expand Down