Skip to content

Commit 9ffabff

Browse files
committed
trying release drafter
1 parent 12acddd commit 9ffabff

File tree

3 files changed

+69
-15
lines changed

3 files changed

+69
-15
lines changed

.github/release-drafter.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name-template: 'v$RESOLVED_VERSION'
2+
tag-template: 'v$RESOLVED_VERSION'
3+
categories:
4+
- title: '🚀 Features'
5+
labels:
6+
- 'feature'
7+
- 'enhancement'
8+
- title: '🐛 Bug Fixes'
9+
labels:
10+
- 'fix'
11+
- 'bugfix'
12+
- 'bug'
13+
- title: '🧰 Maintenance'
14+
label: 'chore'
15+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
16+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
17+
version-resolver:
18+
major:
19+
labels:
20+
- 'major'
21+
minor:
22+
labels:
23+
- 'minor'
24+
patch:
25+
labels:
26+
- 'patch'
27+
default: patch
28+
template: |
29+
## Changes
30+
31+
$CHANGES
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
pull_request:
9+
types: [opened, reopened, synchronize]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
update_release_draft:
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: release-drafter/release-drafter@v6.1.0
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ env:
99
IMAGE_NAME: ${{ github.repository }}
1010

1111
jobs:
12-
create-release:
13-
name: Create Release
14-
runs-on: ubuntu-latest
15-
steps:
16-
- name: Checkout code
17-
uses: actions/checkout@master
18-
- name: Create Release
19-
id: create_release
20-
uses: actions/create-release@latest
21-
with:
22-
tag_name: ${{ github.ref }}
23-
release_name: ${{ github.ref }}
24-
draft: false
25-
prerelease: false
12+
# create-release:
13+
# name: Create Release
14+
# runs-on: ubuntu-latest
15+
# steps:
16+
# - name: Checkout code
17+
# uses: actions/checkout@master
18+
# - name: Create Release
19+
# id: create_release
20+
# uses: actions/create-release@latest
21+
# with:
22+
# tag_name: ${{ github.ref }}
23+
# release_name: ${{ github.ref }}
24+
# draft: false
25+
# prerelease: false
2626
releases-matrix:
27-
needs: create-release
27+
# needs: create-release
2828
name: Release Go Binary
2929
runs-on: ubuntu-latest
3030
strategy:

0 commit comments

Comments
 (0)