Skip to content

Commit 0e97a24

Browse files
committed
release workflow
1 parent 09247c9 commit 0e97a24

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- name: Checkout
3636
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
3737
with:
38-
ref: ${{ inputs.use_existing_tag == 'true' && inputs.version_number || 'master' }
38+
ref: ${{ inputs.use_existing_tag == 'true' && inputs.version_number || 'main' }}
3939

4040
create-tag:
4141
runs-on: ubuntu-latest
@@ -50,7 +50,7 @@ jobs:
5050
- name: Checkout
5151
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
5252
with:
53-
ref: 'master'
53+
ref: 'main'
5454
- name: Get the latest commit SHA
5555
id: get-sha
5656
run: echo "sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"

.goreleaser.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
4+
# The lines below are called `modelines`. See `:help modeline`
5+
# Feel free to remove those if you don't want/need to use them.
6+
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
7+
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
8+
9+
version: 2
10+
11+
builds:
12+
- skip: true
13+
changelog:
14+
sort: asc
15+
use: github
16+
filters:
17+
exclude:
18+
- Merge pull request
19+
- Merge remote-tracking branch
20+
- Merge branch
21+
- go mod tidy
22+
groups:
23+
- title: "New Features"
24+
regexp: "^.*feat[(\\w)]*:+.*$"
25+
order: 0
26+
- title: "Bug fixes"
27+
regexp: "^.*fix[(\\w)]*:+.*$"
28+
order: 10
29+
- title: Other
30+
order: 999
31+
32+
checksum:
33+
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
34+
algorithm: sha256
35+
36+
signs:
37+
- artifacts: checksum
38+
args:
39+
- "--batch"
40+
- "--local-user"
41+
- "{{ .Env.GPG_FINGERPRINT }}"
42+
- "--output"
43+
- "${signature}"
44+
- "--detach-sign"
45+
- "${artifact}"
46+
47+

0 commit comments

Comments
 (0)