diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 87ff6ee..222efb4 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -31,9 +31,16 @@ jobs: - name: Check tag id: check-tag run: | + echo "Should run on this event: $SHOULD_RUN" + echo "Making release: $MAKING_RELEASE" + echo "Event name: ${{ github.event_name }}" + echo "Ref type: ${{ github.ref_type }}" + echo "Ref: ${{ github.ref }}" + echo "run=$SHOULD_RUN" >> $GITHUB_OUTPUT env: SHOULD_RUN: ${{ github.event_name != 'release' || ( github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) }} + MAKING_RELEASE: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }} linux: needs: check-tag @@ -184,7 +191,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - if: ${{ (github.event_name == 'release' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) || (github.event_name == 'workflow_dispatch' && github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) }} + if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }} needs: [linux, musllinux, windows, macos, sdist] steps: - uses: actions/download-artifact@v4