Add create-release.yml

This commit is contained in:
Goooler 2025-07-16 11:42:24 +08:00
parent e5a03b409a
commit 6d36385f08
No known key found for this signature in database
GPG Key ID: 020BDA623C651E0E

18
.github/workflows/create-release.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Create Release
on:
push:
tags:
- '**'
jobs:
create-github-release:
runs-on: ubuntu-latest
if: github.event.repository.fork == false
steps:
- uses: actions/checkout@v4
- name: Create GitHub release
run: |
gh release create ${{ github.ref_name }} \
--title "Create Pull Request ${{ github.ref_name }}" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_BOT_TOKEN }}