Skip to content

Commit

Permalink
GoReleaser v2
Browse files Browse the repository at this point in the history
  • Loading branch information
hekki committed Nov 28, 2024
1 parent e1f46d2 commit ddb533e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Release

on:
push:
tags: '[0-9]+.[0-9]+.[0-9]+'
tags: "[0-9]+.[0-9]+.[0-9]+"

env:
GOPROXY: https://proxy.golang.org
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
uses: goreleaser/goreleaser-action@v6
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
16 changes: 9 additions & 7 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

before:
hooks:
- go mod tidy
Expand All @@ -20,12 +22,12 @@ builds:
goarch: arm64
- goos: windows
goarch: arm64
binary: '{{ .ProjectName }}'
binary: "{{ .ProjectName }}"
archives:
- format: zip
name_template: '{{ .ProjectName }}_{{ .Os }}-{{ .Arch }}'
name_template: "{{ .ProjectName }}_{{ .Os }}-{{ .Arch }}"
checksum:
name_template: '{{ .ProjectName }}_SHA256SUMS'
name_template: "{{ .ProjectName }}_SHA256SUMS"
algorithm: sha256
signs:
- artifacts: checksum
Expand All @@ -36,8 +38,8 @@ signs:
- "${signature}"
- "--detach-sign"
- "${artifact}"
release:
# for debug
# draft: true
# release:
# for debug
# draft: true
changelog:
skip: false
disable: true

0 comments on commit ddb533e

Please sign in to comment.