Skip to content
Closed
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
17 changes: 17 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,20 @@ jobs:
uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2
with:
attestations: true

github-release:
needs: [deploy]
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && github.repository == 'pytest-dev/pluggy'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Publish GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" >/dev/null 2>&1; then
echo "GitHub release $GITHUB_REF_NAME already exists"
else
gh release create "$GITHUB_REF_NAME" --repo "$GITHUB_REPOSITORY" --verify-tag --title "$GITHUB_REF_NAME" --notes ""
fi
1 change: 1 addition & 0 deletions changelog/437.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Published pluggy versions now receive a GitHub Release after successful PyPI deployment, allowing GitHub Release subscribers to receive notifications about new versions.
Loading