From 15461bb1a56fde1ba5b8ab8698a3e088a865d42d Mon Sep 17 00:00:00 2001 From: sebthom Date: Mon, 26 May 2025 20:50:02 +0200 Subject: [PATCH] fix: release build not running --- .github/workflows/build.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 122976d..ae20804 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -328,7 +328,16 @@ jobs: needs: [build, publish-coverage] runs-on: ubuntu-latest timeout-minutes: 5 - if: (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act + + # run on 'main' and 'release' branch when: + # – build succeeded, AND + # – publish-coverage succeeded OR was skipped + if: > + always() + && needs.build.result == 'success' + && (needs.publish-coverage.result == 'success' || needs.publish-coverage.result == 'skipped') + && (github.ref_name == 'main' || github.ref_name == 'release') && !github.event.act + concurrency: publish-${{ github.ref_name }}-release # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idconcurrency steps: