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
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release
on:
push:
branches:
- main
paths:
- 'VERSION'
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- uses: salsify/action-detect-and-tag-new-version@v2
id: tag-new-version
with:
version-command: cat VERSION
- uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
tag_name: ${{ steps.tag-new-version.outputs.tag }}
if: ${{ steps.tag-new-version.outputs.tag }}
# - name: Push HEAD to main version branch
# run: |
# branch_name=$(echo "${{ steps.tag-new-version.outputs.tag }}" | sed -E "s/(v[0-9]+)\..+/\1/")
# git push --force origin "HEAD:refs/heads/${branch_name}"
# if: ${{ steps.tag-new-version.outputs.tag }}