Skip to content

Commit

Permalink
ci: Debug logging on python wheels job (#933)
Browse files Browse the repository at this point in the history
Try to debug why why the release of
https://github.com/CQCL/hugr/releases/tag/hugr-py-v0.1.0 didn't trigger
a the wheels publishing action.

I relaxed the tag filter from `*` to `**` (i.e. include sub-paths) to
see if that works.

drive-by: Unset `prerelease` flag in release please, so the release gets
the published status.
  • Loading branch information
aborgna-q authored Apr 15, 2024
1 parent 880ffed commit 477fa95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
branches:
- main
tags:
- '*'
- '**'

jobs:
build-publish:
Expand Down Expand Up @@ -45,6 +45,11 @@ jobs:
- name: Publish to test instance of PyPI (dry-run)
if: ${{ github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref_type == 'branch' ) }}
run: |
echo "Doing a dry-run publish to test-pypi..."
echo "Based on the following workflow variables, this is not a hugr-py version tag push:"
echo " - event_name: ${{ github.event_name }}"
echo " - ref_type: ${{ github.ref_type }}"
echo " - ref: ${{ github.ref }}"
cd ${{ matrix.package }}
poetry config repositories.test-pypi https://test.pypi.org/legacy/
poetry config pypi-token.test-pypi ${{ secrets.PYPI_TEST_PUBLISH }}
Expand Down
2 changes: 1 addition & 1 deletion release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"package-name": "hugr",
"include-component-in-tag": true,
"draft": false,
"prerelease": true
"prerelease": false
}
},
"changelog-sections": [
Expand Down

0 comments on commit 477fa95

Please sign in to comment.