Skip to content

ci: publish to PyPI via trusted publishing on version tags - #38

Merged
Neal006 merged 1 commit into
mainfrom
ci/pypi-trusted-publishing
Jul 4, 2026
Merged

ci: publish to PyPI via trusted publishing on version tags#38
Neal006 merged 1 commit into
mainfrom
ci/pypi-trusted-publishing

Conversation

@Neal006

@Neal006 Neal006 commented Jul 4, 2026

Copy link
Copy Markdown
Owner

Adds a release workflow: pushing a v* tag builds the package, runs twine check, and publishes memorylens-bench to PyPI via trusted publishing (OIDC) — no stored API tokens.

Requires a one-time trusted-publisher registration on PyPI (owner Neal006, repo memorylens, workflow release.yml, environment pypi).

🤖 Generated with Claude Code

Tag push (v*) builds, validates with twine check, and publishes
memorylens-bench through PyPI trusted publishing (OIDC) — no API
tokens stored anywhere.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 4, 2026 07:41
@Neal006
Neal006 merged commit 2e60a44 into main Jul 4, 2026
@Neal006
Neal006 deleted the ci/pypi-trusted-publishing branch July 4, 2026 07:42

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions release workflow to publish the memorylens-bench Python package to PyPI when a v* tag is pushed, using PyPI Trusted Publishing (OIDC) via the pypa/gh-action-pypi-publish action.

Changes:

  • Introduces .github/workflows/release.yml to build sdist/wheel, run twine check, and publish on v* tag pushes.
  • Configures job-level OIDC permissions (id-token: write) and uses the pypi environment for deployment gating.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +19 to +23
- name: Build
run: |
pip install build twine
python -m build
twine check dist/*
Comment on lines +16 to +18
- uses: actions/setup-python@v5
with:
python-version: "3.12"
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.

2 participants