Skip to content

Commit a91f2ea

Browse files
authored
ci: Try to debug the release workflow (zxcalc#83)
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.
1 parent ea36406 commit a91f2ea

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: .github/workflows/wheels.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@ jobs:
3131
- name: Check tag
3232
id: check-tag
3333
run: |
34+
echo "Should run on this event: $SHOULD_RUN"
35+
echo "Making release: $MAKING_RELEASE"
36+
echo "Event name: ${{ github.event_name }}"
37+
echo "Ref type: ${{ github.ref_type }}"
38+
echo "Ref: ${{ github.ref }}"
39+
3440
echo "run=$SHOULD_RUN" >> $GITHUB_OUTPUT
3541
env:
3642
SHOULD_RUN: ${{ github.event_name != 'release' || ( github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') ) }}
43+
MAKING_RELEASE: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }}
3744

3845
linux:
3946
needs: check-tag
@@ -184,7 +191,7 @@ jobs:
184191
release:
185192
name: Release
186193
runs-on: ubuntu-latest
187-
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') ) }}
194+
if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/quizx-py-v') && (github.event_name == 'release' || github.event_name == 'workflow_dispatch' ) }}
188195
needs: [linux, musllinux, windows, macos, sdist]
189196
steps:
190197
- uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)