Skip to content

Commit f007fc3

Browse files
authored
fix(goreleaser): do not run after hooks on intermediary steps (raphamorim#987)
Signed-off-by: Carlos Alexandro Becker <[email protected]>
1 parent ff9623a commit f007fc3

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

.goreleaser.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,32 +275,32 @@ winget:
275275
after:
276276
hooks:
277277
- cmd: brew bump-cask-pr rio --version {{ .Version }}
278-
if: "{{ .IsRelease }}"
278+
if: "{{ and (.IsRelease .IsMerging )}}"
279279
env: ["HOMEBREW_GITHUB_API_TOKEN={{ .Env.GITHUB_TOKEN }}"]
280280
output: true
281281
- cmd: cargo publish -p rio-window
282-
if: "{{ .IsRelease }}"
282+
if: "{{ and (.IsRelease .IsMerging )}}"
283283
output: true
284284
- cmd: cargo publish -p sugarloaf
285-
if: "{{ .IsRelease }}"
285+
if: "{{ and (.IsRelease .IsMerging )}}"
286286
output: true
287287
- cmd: cargo publish -p rio-proc-macros
288-
if: "{{ .IsRelease }}"
288+
if: "{{ and (.IsRelease .IsMerging )}}"
289289
output: true
290290
- cmd: cargo publish -p copa
291-
if: "{{ .IsRelease }}"
291+
if: "{{ and (.IsRelease .IsMerging )}}"
292292
output: true
293293
- cmd: cargo publish -p corcovado
294-
if: "{{ .IsRelease }}"
294+
if: "{{ and (.IsRelease .IsMerging )}}"
295295
output: true
296296
- cmd: cargo publish -p teletypewriter
297-
if: "{{ .IsRelease }}"
297+
if: "{{ and (.IsRelease .IsMerging )}}"
298298
output: true
299299
- cmd: cargo publish -p rio-backend
300-
if: "{{ .IsRelease }}"
300+
if: "{{ and (.IsRelease .IsMerging )}}"
301301
output: true
302302
- cmd: cargo publish -p rioterm
303-
if: "{{ .IsRelease }}"
303+
if: "{{ and (.IsRelease .IsMerging )}}"
304304
output: true
305305

306306
metadata:

0 commit comments

Comments
 (0)