-
Notifications
You must be signed in to change notification settings - Fork 0
Publishing to PyPI
John Williams edited this page Mar 6, 2026
·
1 revision
Releases use PyPI Trusted Publishing — no API tokens needed.
- You create a GitHub Release (e.g. tag
v0.3.0) - The
publish.ymlworkflow triggers automatically - It builds the package with
python -m build - PyPI's trusted publisher verifies the GitHub Actions OIDC token
- Package is published to PyPI as
googleadsagent-mcp
Before your first publish, register the trusted publisher on PyPI:
- Go to pypi.org and sign in (or create an account)
- Go to Your projects → Publishing → Add a new pending publisher
- Fill in:
-
PyPI project name:
googleadsagent-mcp -
Owner:
itallstartedwithaidea -
Repository:
google-ads-mcp -
Workflow name:
publish.yml -
Environment name:
pypi
-
PyPI project name:
- Click Add
Create the pypi environment in your repo:
- Go to Settings → Environments → New environment
- Name it
pypi - Optionally add deployment protection rules (e.g. require approval)
- Update the version in
pyproject.toml:version = "0.3.0"
- Commit and push
- Go to Releases → Draft a new release
- Tag:
v0.3.0(create new tag) - Title:
v0.3.0 - Describe what changed
- Click Publish release
The workflow runs automatically. Check the Actions tab for status.
Follow semver:
-
0.x.y— pre-1.0 development (current) - Bump minor (
0.3.0→0.4.0) for new tools or features - Bump patch (
0.3.0→0.3.1) for bug fixes