Fix release action and make sure to also build for Windows (#43)

This commit is contained in:
Fabian Jakobs 2022-09-08 14:57:33 +02:00 committed by GitHub
parent 1ddba0caa8
commit f309f68444
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 21 deletions

View File

@ -18,17 +18,10 @@ jobs:
with:
go-version: 1.18
cache: true
- name: Import GPG key
id: import_gpg
uses: hashicorp/ghaction-import-gpg@v2.1.0
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3.1.0
with:
version: latest
args: release --rm-dist
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -15,12 +15,7 @@ builds:
- darwin
goarch:
- amd64
- '386'
- arm
- arm64
ignore:
- goos: darwin
goarch: '386'
binary: '{{ .ProjectName }}_v{{ .Version }}'
archives:
- format: zip
@ -30,15 +25,6 @@ checksum:
algorithm: sha256
snapshot:
name_template: '{{ incpatch .Version }}-devel'
# signs:
# - artifacts: checksum
# args:
# - "--local-user"
# - "{{ .Env.GPG_FINGERPRINT }}"
# - "--output"
# - "${signature}"
# - "--detach-sign"
# - "${artifact}"
changelog:
sort: asc
filters: