Skip to content

chore: migrate PyPI publishing workflow to OSS Exit Gate - #137

Open
zarturod wants to merge 1 commit into
google-deepmind:mainfrom
zarturod:chore/oss-exit-gate-migration
Open

zarturod wants to merge 1 commit into
google-deepmind:mainfrom
zarturod:chore/oss-exit-gate-migration

Conversation

@zarturod

@zarturod zarturod commented Nov 5, 2026

Copy link
Copy Markdown

Summary

Migrates the existing .github/workflows/pypi-publish.yml release workflow for mctx to publish through Google's OSS Exit Gate (mctx/pypi).

Changes

  • Adds contents: read alongside id-token: write on the deploy job.
  • Replaces pypa/gh-action-pypi-publish@release/v1 with Google Cloud Workload Identity Federation (google-github-actions/auth@v3, provider projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).
  • Stages built distributions (dist/*) to the OSS Exit Gate Artifact Registry (https://us-python.pkg.dev/oss-exit-gate-prod/mctx--pypi) using twine and keyrings.google-artifactregistry-auth.
  • Uploads publish_all.json to gs://oss-exit-gate-prod-projects-bucket/mctx/pypi/manifests/manifest-${{ github.run_id }}-${{ github.run_attempt }}.json to trigger the OSS Exit Gate release pipeline (preserving the existing release-tag version consistency check).

Verification (Step 8 Production Smoke Test)

  • Production onboarding config (mctx/pypi, http://cl/1013292256) and Terraform provisioning are live.
  • End-to-end Artifact Registry staging (mctx==0.0.71, HTTP 200) and GCS manifest upload (HTTP 200) verified.

Refs: b/579645426, b/576680589

@zarturod
zarturod force-pushed the chore/oss-exit-gate-migration branch from 1f5e6e5 to a16da13 Compare November 5, 2026 20:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant