diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d10846cf..c477d780 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: publish-dry-run: name: "Runs cargo publish --dry-run" runs-on: ubuntu-latest - if: ${{ github.event.pull_request.merged }} + if: ${{ always() && (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') }} steps: - name: Checkout uses: actions/checkout@v6 @@ -58,7 +58,7 @@ jobs: build-binaries: name: Build binaries - if: ${{ (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && needs.publish-dry-run.result == 'success' }} + needs: publish-dry-run strategy: matrix: include: @@ -146,7 +146,6 @@ jobs: name: Create Release needs: build-binaries runs-on: ubuntu-latest - if: ${{ (github.event.pull_request.merged || github.event_name == 'workflow_dispatch') && needs.build-binaries.result == 'success' }} steps: - name: Checkout uses: actions/checkout@v6