add a github release action workflow

This commit is contained in:
ripytide
2023-12-28 14:07:18 +00:00
parent 6480e226a8
commit 0ac7a93ef3
3 changed files with 32 additions and 1 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Release
permissions:
contents: write
on:
push:
tags:
- v[0-9]+.*
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (Optional) Path to changelog.
changelog: CHANGELOG.md
# (Optional) Reject releases from commits not contained in branches
# that match the specified pattern (regular expression)
branch: main
# (Required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}