From f007fc3ab517fca698aa9ec53b71d02deb569339 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Wed, 26 Feb 2025 13:13:27 -0300 Subject: [PATCH] fix(goreleaser): do not run after hooks on intermediary steps (#987) Signed-off-by: Carlos Alexandro Becker --- .goreleaser.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.goreleaser.yaml b/.goreleaser.yaml index e4b8e3225d..217073a627 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -275,32 +275,32 @@ winget: after: hooks: - cmd: brew bump-cask-pr rio --version {{ .Version }} - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" env: ["HOMEBREW_GITHUB_API_TOKEN={{ .Env.GITHUB_TOKEN }}"] output: true - cmd: cargo publish -p rio-window - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p sugarloaf - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p rio-proc-macros - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p copa - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p corcovado - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p teletypewriter - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p rio-backend - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true - cmd: cargo publish -p rioterm - if: "{{ .IsRelease }}" + if: "{{ and (.IsRelease .IsMerging )}}" output: true metadata: