Skip to content

feat: automate release workflow with github environments#96

Merged
advaitpatel merged 1 commit into
mainfrom
feature/automated-release-workflow
Jun 12, 2026
Merged

feat: automate release workflow with github environments#96
advaitpatel merged 1 commit into
mainfrom
feature/automated-release-workflow

Conversation

@advaitpatel

Copy link
Copy Markdown
Collaborator

Summary

Updates the release workflow to use workflow_dispatch and GitHub Environments, providing a controlled, automated release process for PyPI and GitHub Marketplace.

Changes

  • Switched trigger from push (tags) to workflow_dispatch with a manual version input.
  • Added update-version job to automatically bump the version in setup.py, commit, and create the git tag.
  • Added publish-pypi job tied to the pypi-release environment for manual deployment approval before publishing to PyPI.
  • Added publish-github-release job tied to the marketplace-release environment to automatically create the GitHub Release (which publishes to the Action Marketplace) after approval.

Setup Required

Before running this workflow, the following environments must be created in Repository Settings > Environments:

  1. pypi-release (with required reviewers)
  2. marketplace-release (with required reviewers)

## Summary
Updates the release workflow to use `workflow_dispatch` and GitHub Environments, providing a controlled, automated release process for PyPI and GitHub Marketplace.

## Changes
- Switched trigger from `push` (tags) to `workflow_dispatch` with a manual version input.
- Added `update-version` job to automatically bump the version in `setup.py`, commit, and create the git tag.
- Added `publish-pypi` job tied to the `pypi-release` environment for manual deployment approval before publishing to PyPI.
- Added `publish-github-release` job tied to the `marketplace-release` environment to automatically create the GitHub Release (which publishes to the Action Marketplace) after approval.

## Setup Required
Before running this workflow, the following environments must be created in Repository Settings > Environments:
1. `pypi-release` (with required reviewers)
2. `marketplace-release` (with required reviewers)
@advaitpatel
advaitpatel merged commit 8137025 into main Jun 12, 2026
8 checks passed
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.

1 participant