Skip to content

Commit c39141b

Browse files
authored
Merge pull request #505 from gridscale/fix/goreleaser
Fix goreleaser installation
2 parents 4512967 + 0453936 commit c39141b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ jobs:
2828
gpg_private_key: ${{ secrets.RELEASE_SIGNING_KEY }}
2929
passphrase: ${{ secrets.RELEASE_SIGNING_KEY_PASSPHRASE }}
3030

31+
- name: Install goreleaser
32+
run: go install github.com/goreleaser/goreleaser/[email protected]
33+
3134
- name: Build executable files
3235
env:
3336
GPG_FINGERPRINT: [email protected]
3437
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3538
run: |
36-
go install github.com/goreleaser/[email protected]
3739
export PATH="./bin:$PATH"
3840
goreleaser release --clean

.goreleaser.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# Artifacts must be produced matching the layout described at
55
# https://www.terraform.io/docs/registry/providers/publishing.html
66

7+
version: 2
8+
79
before:
810
hooks:
911
- go mod tidy
@@ -30,7 +32,8 @@ builds:
3032
goarch: "386"
3133
binary: "{{ .ProjectName }}_v{{ .Version }}"
3234
archives:
33-
- format: zip
35+
- formats:
36+
- zip
3437
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
3538
checksum:
3639
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
@@ -48,4 +51,4 @@ signs:
4851
release:
4952
draft: true
5053
changelog:
51-
skip: true
54+
disable: true

0 commit comments

Comments
 (0)