File tree Expand file tree Collapse file tree 5 files changed +151
-57
lines changed
Expand file tree Collapse file tree 5 files changed +151
-57
lines changed Original file line number Diff line number Diff line change 1+ name-template : ' v$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+ - ' no-release'
21+ default : ' minor'
22+
23+ categories :
24+ - title : ' 🚀 Enhancements'
25+ labels :
26+ - ' enhancement'
27+ - ' patch'
28+ - title : ' 🐛 Bug Fixes'
29+ labels :
30+ - ' fix'
31+ - ' bugfix'
32+ - ' bug'
33+ - ' hotfix'
34+ - title : ' 🤖 Automatic Updates'
35+ labels :
36+ - ' auto-update'
37+
38+ change-template : |
39+ <details>
40+ <summary>$TITLE @$AUTHOR (#$NUMBER)</summary>
41+
42+ $BODY
43+ </details>
44+
45+ template : |
46+ $CHANGES
47+
48+ replacers :
49+ # Remove irrelevant information from Renovate bot
50+ - search : ' /(?<=---\s)\s*^#.*(Renovate configuration|Configuration)(?:.|\n)*?This PR has been generated .*/gm'
51+ replace : ' '
52+ # Remove Renovate bot banner image
53+ - search : ' /\[!\[[^\]]*Renovate\][^\]]*\](\([^)]*\))?\s*\n+/gm'
54+ replace : ' '
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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.REPO_ACCESS_TOKEN }}
17+
18+ # Drafts your next Release notes as Pull Requests are merged into "main"
19+ - uses : release-drafter/release-drafter@v5
20+ with :
21+ publish : false
22+ prerelease : false
23+ config-name : draft-release.yml
24+ env :
25+ GITHUB_TOKEN : ${{ secrets.REPO_ACCESS_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Feature branch
2+
3+ on :
4+ workflow_dispatch :
5+
6+ pull_request :
7+ types :
8+ - opened
9+ - synchronize
10+ - reopened
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v3
18+ with :
19+ fetch-depth : 0
20+
21+ - name : Set up Go
22+ uses : actions/setup-go@v3
23+ with :
24+ go-version : ' 1.20'
25+
26+ - name : Test Snapshot Release
27+ uses : goreleaser/goreleaser-action@v4
28+ with :
29+ distribution : goreleaser
30+ version : latest
31+ args : release --clean --snapshot
32+
33+ - name : Upload Test Release Assets
34+ uses : actions/upload-artifact@v3
35+ with :
36+ name : slack-notifier
37+ path : dist/*
38+ retention-days : 3
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ workflow_dispatch :
5+
6+ release :
7+ types :
8+ - published
9+
10+ permissions :
11+ contents : write
12+
13+ jobs :
14+ release :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
21+
22+ - name : Set up Go
23+ uses : actions/setup-go@v3
24+ with :
25+ go-version : ' 1.20'
26+
27+ - name : Public Release
28+ uses : goreleaser/goreleaser-action@v4
29+ with :
30+ distribution : goreleaser
31+ version : latest
32+ args : release --clean
33+ env :
34+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments