Skip to content

Commit 0152a16

Browse files
committed
Add release generation GH workflow
1 parent 299a84c commit 0152a16

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

.github/release-drafter.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
template: |
4+
## What's Changed
5+
$CHANGES
6+
7+
## Contributors
8+
$CONTRIBUTORS
9+
10+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
11+
change-template: '- $TITLE by @$AUTHOR in #$NUMBER'

.github/workflows/release.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Create Release on Latest Tag Push
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Create Release
16+
uses: release-drafter/release-drafter@b1476f6e6eb133afa41ed8589daba6dc69b4d3f5 # v6 release-drafter
17+
with:
18+
name: ${{ github.ref_name }}
19+
tag: ${{ github.ref_name }}
20+
publish: true
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)