Skip to content

Commit c9079d0

Browse files
Merge pull request #45 from DNXLabs/feature/auto-release
Feature/auto release
2 parents 6a441b0 + 681548e commit c9079d0

File tree

2 files changed

+67
-0
lines changed

2 files changed

+67
-0
lines changed

.github/release-drafter.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name-template: '$RESOLVED_VERSION'
2+
tag-template: '$RESOLVED_VERSION'
3+
version-template: '$MAJOR.$MINOR.$PATCH'
4+
version-resolver:
5+
major:
6+
labels:
7+
- 'major'
8+
minor:
9+
labels:
10+
- 'minor'
11+
- 'enhancement'
12+
patch:
13+
labels:
14+
- 'auto-update'
15+
- 'patch'
16+
- 'fix'
17+
- 'bugfix'
18+
- 'bug'
19+
- 'hotfix'
20+
default: 'minor'
21+
22+
categories:
23+
- title: '🚀 Enhancements'
24+
labels:
25+
- 'enhancement'
26+
- 'patch'
27+
- title: '🐛 Bug Fixes'
28+
labels:
29+
- 'fix'
30+
- 'bugfix'
31+
- 'bug'
32+
- 'hotfix'
33+
- title: '🤖 Automatic Updates'
34+
labels:
35+
- 'auto-update'
36+
37+
change-template: |
38+
<details>
39+
<summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
40+
$BODY
41+
</details>
42+
template: |
43+
## What’s Changed
44+
$CHANGES

.github/workflows/auto-release.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: auto-release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
# Get PR from merged commit to master
13+
- uses: actions-ecosystem/action-get-merged-pull-request@v1
14+
id: get-merged-pull-request
15+
with:
16+
github_token: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}
17+
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
- uses: release-drafter/release-drafter@v5
19+
with:
20+
publish: ${{ !contains(steps.get-merged-pull-request.outputs.labels, 'no-release') }}
21+
prerelease: false
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.PUBLIC_REPO_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)