Skip to content

Commit 20bd1cf

Browse files
authored
Rollback Go releaser config (#218)
* Rollback Go releaser config * Update shared-go-auto-release.yml
1 parent 677ff11 commit 20bd1cf

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.github/goreleaser.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,15 @@ builds:
1717
ldflags:
1818
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}}'
1919
goos:
20-
{{ if and (index .Env "GO_RELEASER_DRAFT_MODE") (.Env.GO_RELEASER_TARGET_COMMITISH == "true") }}
21-
- linux
22-
- darwin
23-
{{ else }}
2420
- freebsd
2521
- windows
2622
- linux
2723
- darwin
28-
{{ end }}
2924
goarch:
30-
{{ if and (index .Env "GO_RELEASER_DRAFT_MODE") (.Env.GO_RELEASER_TARGET_COMMITISH == "true") }}
31-
- amd64
32-
- arm64
33-
{{ else }}
3425
- amd64
3526
- '386'
3627
- arm
3728
- arm64
38-
{{ end }}
3929
binary: '{{ .ProjectName }}'
4030

4131
archives:

.github/workflows/shared-go-auto-release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,12 @@ jobs:
169169
GORELEASER_CONFIG="../.configs/.github/goreleaser.yml"
170170
fi
171171
172+
if [[ "${{ inputs.draft }}" == "true" ] && [ -f .goreleaser.draft.yml ]]; then
173+
echo 'Go releaser draft config exists and this is draft mode'
174+
GORELEASER_CONFIG="./.goreleaser.draft.yml"
175+
fi
176+
177+
172178
if [[ "${{ inputs.format }}" == "binary" ]]; then
173179
sed -i 's/{{ .Env.ARCHIVES_FORMAT }}/binary/g' $GORELEASER_CONFIG
174180
elif [[ "${{ inputs.format }}" == "zip" ]]; then

0 commit comments

Comments
 (0)