Skip to content

Add git tag trigger to GitHub Actions push workflow for PyPI releases #15

Description

@milliyin

📝 Problem Description

Currently, pushing Git release tags (e.g. git push origin v0.0.1) does not trigger the GitHub Actions workflow. The top-level on.push configuration in .github/workflows/ci.yml is restricted to branches: [main], omitting tags: ["v*"].

As a result, PyPI trusted publishing is not automatically triggered upon pushing version tags.

💡 Proposed Solution

  1. Add tags: ["v*"] under on.push in .github/workflows/ci.yml.
  2. Update the build job condition to accept refs/tags/v* so PyPI release builds execute upon tag creation.

✅ Acceptance Criteria

  • Pushing a version tag vX.Y.Z triggers the GitHub Actions CI workflow.
  • Package build and PyPI publish steps execute automatically upon tag push.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions