From f4047cff01f02645ce138101bbb88cc8b2bcb1f7 Mon Sep 17 00:00:00 2001 From: victorwon2001 <192616110+victorwon2001@users.noreply.github.com> Date: Wed, 14 Oct 2026 15:39:08 +0900 Subject: [PATCH 1/2] ci: publish GitHub releases after PyPI deployment --- .github/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8c8fef9d..16f6c291 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 From 0fe5b0f842c780679b1d0706c64770e1c6587102 Mon Sep 17 00:00:00 2001 From: victorwon2001 <192616110+victorwon2001@users.noreply.github.com> Date: Wed, 14 Oct 2026 16:01:36 +0900 Subject: [PATCH 2/2] docs: add changelog entry for GitHub Releases --- changelog/437.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 changelog/437.feature.rst diff --git a/changelog/437.feature.rst b/changelog/437.feature.rst new file mode 100644 index 00000000..51fd3550 --- /dev/null +++ b/changelog/437.feature.rst @@ -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.