feat(signing): added goreleaser signing
This commit is contained in:
parent
df697c0ff6
commit
a70e107a3f
2 changed files with 25 additions and 3 deletions
7
.github/workflows/release.yaml
vendored
7
.github/workflows/release.yaml
vendored
|
|
@ -19,9 +19,16 @@ jobs:
|
|||
go-version: ">=1.25.1"
|
||||
- name: Test code
|
||||
run: make test
|
||||
- name: Import GPG key
|
||||
id: import_gpg
|
||||
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||
- name: Run GoReleaser
|
||||
uses: https://github.com/goreleaser/goreleaser-action@v6
|
||||
env:
|
||||
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}
|
||||
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
|
||||
with:
|
||||
args: release --clean
|
||||
|
|
|
|||
|
|
@ -10,11 +10,11 @@ builds:
|
|||
- CGO_ENABLED=0
|
||||
goos:
|
||||
- linux
|
||||
- darwin
|
||||
- windows
|
||||
#- darwin
|
||||
#- windows
|
||||
goarch:
|
||||
- amd64
|
||||
- arm64
|
||||
#- arm64
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
|
|
@ -31,6 +31,21 @@ archives:
|
|||
- goos: windows
|
||||
formats: [zip]
|
||||
|
||||
signs:
|
||||
- artifacts: checksum
|
||||
cmd: gpg2
|
||||
args:
|
||||
- "--batch"
|
||||
- "-u"
|
||||
- "{{ .Env.GPG_FINGERPRINT }}"
|
||||
- "--output"
|
||||
- "${signature}"
|
||||
- "--detach-sign"
|
||||
- "${artifact}"
|
||||
|
||||
#binary_signs:
|
||||
# - {}
|
||||
|
||||
changelog:
|
||||
abbrev: 10
|
||||
filters:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue