Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion .github/workflows/python-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
# Check if the tag matches the package name,
# or if the workflow is running on a non-release event.
check-tag:
name: Check tag
name: Check tag and temporarily mark the release as draft
runs-on: ubuntu-latest
outputs:
run: ${{ steps.check-tag.outputs.run }}
Expand All @@ -52,6 +52,17 @@ jobs:
env:
SHOULD_RUN: ${{ github.ref_type != 'tag' || ( github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/hugr-py-v') ) }}

- name: Temporarily mark the release as draft
if: ${{ github.ref_type == 'tag' && startsWith(github.ref, 'refs/tags/hugr-py-v') }}
run: |
gh release view ${{ github.ref_name }}
if [ $? -ne 0 ]; then
echo "No release found for tag ${{ github.ref_name }}"
exit 1
fi
# Make the GitHub release a draft until the package has been published to PyPI
gh release edit ${{ github.ref_name }} --draft=true

linux:
needs: check-tag
if: ${{ needs.check-tag.outputs.run == 'true' }}
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 @@
"component": "hugr-py",
"package-name": "hugr",
"include-component-in-tag": true,
"draft": true,
"draft": false,
"prerelease": false,
"draft-pull-request": true,
"extra-files": [
Expand Down
Loading