Skip to content

Commit cd0f562

Browse files
committed
migrate to github actions release workflow after upstream changes in hc-releases and setup-hc-releases
1 parent a21c74d commit cd0f562

File tree

3 files changed

+23
-43
lines changed

3 files changed

+23
-43
lines changed

.goreleaser.yml

+23-12
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
archives:
22
- files:
3-
- none*
3+
# Ensure only built binary is archived
4+
- 'none*'
45
format: zip
56
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
67
before:
78
hooks:
8-
- go mod download
9+
- 'go mod download'
910
builds:
10-
- binary: '{{ .ProjectName }}_{{ .Version }}'
11+
- # Binary naming only required for Terraform CLI 0.12
12+
binary: '{{ .ProjectName }}_v{{ .Version }}_x5'
13+
env:
14+
- CGO_ENABLED=0
1115
flags:
1216
- -trimpath
17+
goos:
18+
- darwin
19+
- freebsd
20+
- linux
21+
- windows
1322
goarch:
1423
- '386'
1524
- amd64
@@ -53,12 +62,14 @@ release:
5362
ids:
5463
- none
5564
signs:
56-
- artifacts: checksum
57-
args:
58-
- "--batch"
59-
- "--local-user"
60-
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
61-
- "--output"
62-
- "${signature}"
63-
- "--detach-sign"
64-
- "${artifact}"
65+
- args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
66+
artifacts: checksum
67+
cmd: signore
68+
signature: ${artifact}.sig
69+
- args: ["sign", "--dearmor", "--file", "${artifact}", "--out", "${signature}"]
70+
artifacts: checksum
71+
cmd: signore
72+
id: key-id
73+
signature: ${artifact}.72D7468F.sig
74+
snapshot:
75+
name_template: "{{ .Tag }}-next"

.tfproto5

Whitespace-only changes.

scripts/changelog-links.sh

-31
This file was deleted.

0 commit comments

Comments
 (0)