Skip to content

Conversation

@czgdp1807
Copy link
Collaborator

Description

Add comprehensive documentation for releasing ML Metadata wheels to PyPI using GitHub Actions. This includes setup instructions and two release methods:

  • Setup: Required one-time configuration of PyPI environment and PYPI_TOKEN secret
  • Part 1: Manual release via workflow_dispatch trigger
  • Part 2: Automated release via GitHub Release with tags

Changes

  • Added "Releasing Wheels to PyPI" section to README.md with step-by-step instructions
  • Consolidated shared setup steps to avoid duplication
  • Provided clear guidance for both release workflows

Related Issues

Complements the token-based PyPI authentication workflow changes.

Add release trigger to workflow
Add comprehensive release documentation with shared setup steps and two release methods: manual workflow_dispatch and automated GitHub release with tags.
@czgdp1807 czgdp1807 requested a review from aktech January 28, 2026 07:07
Ensure your release branch has the correct version set in `ml_metadata/version.py`, then:

```bash
git add .
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's better to specify to only add the intended file (ml_metadata/version.py), instead of add all.


1. Navigate to the GitHub Actions page: https://github.com/google/ml-metadata/actions
2. Find and select the `Build ml-metadata with Conda` workflow: https://github.com/google/ml-metadata/actions/workflows/conda-build.yml
3. Look for "This workflow has a workflow_dispatch event trigger."
Copy link
Collaborator

Choose a reason for hiding this comment

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

This step is unnecessary, as the users can simply click on the "Run workflow" button directly.

Copy link
Collaborator

@aktech aktech left a comment

Choose a reason for hiding this comment

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

I have suggested minor nitpicks, otherwise looks good.

I have tested the release process (via github release) in branch and works fine.

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