add a github release action workflow
This commit is contained in:
parent
6480e226a8
commit
0ac7a93ef3
24
.github/workflows/gh-release.yaml
vendored
Normal file
24
.github/workflows/gh-release.yaml
vendored
Normal 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 }}
|
@ -5,7 +5,9 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## Unreleased
|
||||
<!-- next-header -->
|
||||
|
||||
## Unreleased - ReleaseDate
|
||||
|
||||
### Added
|
||||
|
||||
|
5
release.toml
Normal file
5
release.toml
Normal file
@ -0,0 +1,5 @@
|
||||
pre-release-replacements = [
|
||||
{file="CHANGELOG.md", search="Unreleased", replace="{{version}}"},
|
||||
{file="CHANGELOG.md", search="ReleaseDate", replace="{{date}}"},
|
||||
{file="CHANGELOG.md", search="<!-- next-header -->", replace="<!-- next-header -->\n\n## Unreleased - ReleaseDate", exactly=1},
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user