File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff 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
4131archives :
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments