Skip to content

Add release workflow#39

Open
0xlukem wants to merge 1 commit intomainfrom
0xlukem/add-release-workflow
Open

Add release workflow#39
0xlukem wants to merge 1 commit intomainfrom
0xlukem/add-release-workflow

Conversation

@0xlukem
Copy link
Copy Markdown
Contributor

@0xlukem 0xlukem commented Apr 1, 2026

This pull request introduces a new GitHub Actions workflow to automate the process of building, verifying, and publishing the Python package to PyPI upon a new release. The workflow ensures version consistency, verifies the build artifacts, and attaches the distribution files to both PyPI and the GitHub Release.

New release automation workflow:

  • Added .github/workflows/release.yml to automate package publishing on release, including steps for building distributions, validating version tags, verifying artifacts, and uploading to PyPI and GitHub Release assets.

Key features of the workflow:

  • Checks out the release tag and sets up Python 3.12 for the build process.
  • Validates that the GitHub release tag matches the version specified in pyproject.toml to prevent mismatched releases.
  • Builds both wheel and source distribution files, and verifies that exactly one of each is produced.
  • Publishes the built distributions to PyPI using trusted publishing.
  • Uploads distribution files as assets to the corresponding GitHub Release for easy access.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 new GitHub Actions workflow to automate building and publishing this Python package when a GitHub Release is published, including basic checks for tag/version consistency and artifact presence.

Changes:

  • Added a release-triggered workflow that checks out the release tag and builds wheel + sdist.
  • Added validation that the GitHub release tag matches pyproject.toml’s project.version.
  • Added publishing to PyPI (trusted publishing) and upload of built distributions to the GitHub Release as assets.

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

@0xlukem 0xlukem marked this pull request as draft April 1, 2026 21:45
@0xlukem 0xlukem marked this pull request as ready for review April 1, 2026 21:51
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.

3 participants