ci: auto-create GitHub Release on version tag push (#2995)

This commit is contained in:
zhifu gao
2026-06-19 22:01:50 +08:00
committed by GitHub
parent 4ab43a4e33
commit 59bd7325bb
+21
View File
@@ -0,0 +1,21 @@
name: Release on tag
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Create GitHub Release with auto-generated notes
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "${{ github.ref_name }}" --generate-notes --verify-tag --title "${{ github.ref_name }}"