From c08e3cded556f0f59e3400ac112dd9f5eca47a80 Mon Sep 17 00:00:00 2001 From: Suleiman Latrsh Date: Tue, 25 Aug 2026 16:07:17 -0400 Subject: [PATCH] Create a GitHub release when publishing to PyPI The publish workflow published to PyPI but never tagged the repo or created a GitHub release, so the repo shows no releases even though the package is live (unlike shopify-app-php). Add a github-release job that tags v and creates a release after a successful publish, mirroring the PHP package. Assisted-By: devx/76ce673e-0c1d-4481-a139-0485281bc265 --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ddb67cc..0f5283e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -93,3 +93,26 @@ jobs: - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0 # No credentials needed - uses OIDC trusted publishing + + github-release: + name: Create GitHub release + needs: [check-version, publish] + if: needs.check-version.outputs.should_publish == 'true' + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 + + - name: Create GitHub release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TAG: v${{ needs.check-version.outputs.version }} + run: | + if gh release view "$TAG" > /dev/null 2>&1; then + echo "Release $TAG already exists, skipping." + else + gh release create "$TAG" \ + --title "$TAG" \ + --generate-notes + fi