File tree Expand file tree Collapse file tree 2 files changed +18
-6
lines changed
Expand file tree Collapse file tree 2 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 2727 release_os :
2828 - linux
2929 - hsm
30- - other
30+ - darwin
31+ - freebsd
32+ - illumos
33+ - netbsd
34+ - openbsd
35+ - windows
3136 steps :
3237 - name : Disable release on nightly repository
3338 if : ${{ !inputs.nightly }}
@@ -162,13 +167,20 @@ jobs:
162167 run : |
163168 make static-dist
164169
165- - name : " GoReleaser: Release "
170+ - name : Install GoReleaser
166171 if : startsWith(github.ref, 'refs/tags/') || inputs.nightly
167172 uses : goreleaser/goreleaser-action@v6
168173 with :
169- distribution : goreleaser
170- version : latest
171- args : release --clean --timeout=60m --verbose --parallelism 2 -f goreleaser.${{ matrix.release_os }}.yaml
174+ install-only : true
175+
176+ - name : " GoReleaser: Release"
177+ if : startsWith(github.ref, 'refs/tags/') || inputs.nightly
178+ run : |
179+ if [[ ! -f "goreleaser.${{ matrix.release_os }}.yaml" ]]; then
180+ yq e '.builds[0].goos |= ["${{ matrix.release_os }}"]' "goreleaser.other.yaml" | goreleaser release --clean --timeout=60m --verbose --paralellism 2 -f -
181+ else
182+ goreleaser release --clean --timeout=60m --verbose --parallelism 2 -f "goreleaser.${{ matrix.release_os }}.yaml"
183+ fi
172184 env :
173185 COSIGN_PASSWORD : ${{ secrets.COSIGN_PASSWORD }}
174186 COSIGN_PRIVATE_KEY : ${{ secrets.COSIGN_PRIVATE_KEY }}
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ builds:
7373report_sizes : true
7474
7575checksum :
76- name_template : " checksums-other .txt"
76+ name_template : " checksums-{{ .Os }} .txt"
7777 disable : false
7878
7979archives :
You can’t perform that action at this time.
0 commit comments