Skip to content

Commit

Permalink
ci: Try to debug the release workflow (#83)
Browse files Browse the repository at this point in the history
The release workflow ran and built the wheels, but for some reason the
`publish` step got skipped -.-'
https://github.com/zxcalc/quizx/actions/runs/11603200919/job/32310138857

This PR simplifies the `if` condition and adds debug info.
  • Loading branch information
ABorgna authored Oct 30, 2024
1 parent ea36406 commit a91f2ea
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit a91f2ea

Please sign in to comment.