Skip to content

Commit b489a98

Browse files
ci: add release-drafter
1 parent d1f90a6 commit b489a98

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

.github/release-drafter.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
4+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
5+
template: |
6+
## Changes
7+
8+
$CHANGES

.github/workflows/draft-release.yaml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
## Reference: https://github.com/release-drafter/release-drafter
2+
name: Create Release
3+
4+
on:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
create_release:
11+
name: Create Release
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Set up jq
20+
uses: dcarbone/[email protected]
21+
22+
- name: Get release version from service.yaml
23+
run: |
24+
RELEASE_VERSION=$(jq -r '.version' package.json )
25+
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
26+
27+
- uses: release-drafter/release-drafter@v5
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
with:
31+
publish: true
32+
version: ${{ env.RELEASE_VERSION }}
33+
config-name: release-drafter.yaml

0 commit comments

Comments
 (0)