Skip to content

Commit 09aed19

Browse files
committed
Remove Go template conditionals from GoReleaser config - subkey has no passphrase
1 parent 320b921 commit 09aed19

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.goreleaser.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,12 @@ signs:
4242
- id: checksum
4343
artifacts: checksum
4444
args:
45-
# If GPG_PASSPHRASE is empty, don't use --passphrase flag (for keys without passphrase)
45+
# Subkey has no passphrase - no --passphrase flag needed
4646
- "--batch"
4747
- "--yes"
4848
- "--no-tty"
4949
- "--pinentry-mode"
5050
- "loopback"
51-
{{- if .Env.GPG_PASSPHRASE }}
52-
- "--passphrase"
53-
- "{{ .Env.GPG_PASSPHRASE }}"
54-
{{- end }}
5551
- "--local-user"
5652
- "{{ .Env.GPG_FINGERPRINT }}" # set this environment variable for your signing key
5753
- "--output"
@@ -66,10 +62,6 @@ signs:
6662
- "--no-tty"
6763
- "--pinentry-mode"
6864
- "loopback"
69-
{{- if .Env.GPG_PASSPHRASE }}
70-
- "--passphrase"
71-
- "{{ .Env.GPG_PASSPHRASE }}"
72-
{{- end }}
7365
- "--local-user"
7466
- "{{ .Env.GPG_FINGERPRINT }}"
7567
- "--output"

0 commit comments

Comments
 (0)