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
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
tags:
- '*'
workflow_dispatch:

permissions:
contents: write
Expand Down Expand Up @@ -75,7 +76,7 @@ jobs:
fi

- name: Upload binary to release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
Expand Down
9 changes: 9 additions & 0 deletions .github/workflows/release_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: write
actions: write
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -30,6 +31,7 @@ jobs:
git config user.email "github-actions[bot]@users.noreply.github.com"

- name: Bump version and push tag
id: bump
run: |
# Get the latest tag, default to 0.0.0 if none exists
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0")
Expand Down Expand Up @@ -66,3 +68,10 @@ jobs:
# Create and push the new tag
git tag $NEW_TAG
git push origin $NEW_TAG
echo "tag=$NEW_TAG" >> "$GITHUB_OUTPUT"

# A tag pushed with GITHUB_TOKEN doesn't trigger the Release workflow, but a dispatch does.
- name: Start the release build
run: gh workflow run release.yml --ref "${{ steps.bump.outputs.tag }}"
env:
GH_TOKEN: ${{ github.token }}
Loading