feat: auto release

This commit is contained in:
Soulter
2024-12-16 21:00:38 +08:00
parent 94434e3fc0
commit c8518ce827
+24
View File
@@ -0,0 +1,24 @@
on:
push:
tags:
- 'v*'
name: Auto Release
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Fetch Changelog
run: |
echo "changelog=changelogs/${{github.ref_name}}.md" >> "$GITHUB_ENV"
- name: Create Release
uses: ncipollo/release-action@v1
with:
bodyFile: ${{ env.changelog }}