Skip to content

ci: extract publish workflow for manual releases#60

Merged
FBumann merged 1 commit intomainfrom
ci/add-publish-workflow
Mar 21, 2026
Merged

ci: extract publish workflow for manual releases#60
FBumann merged 1 commit intomainfrom
ci/add-publish-workflow

Conversation

@FBumann
Copy link
Owner

@FBumann FBumann commented Mar 21, 2026

Summary

  • Extract publish job into separate publish.yml with manual workflow_dispatch trigger
  • Allows ad-hoc releases (e.g. pre-releases from feature branches) by specifying a tag
  • release.yml calls publish.yml via workflow_call on release-please releases

Test plan

  • Manually trigger publish.yml with a tag from Actions tab
  • Verify release-please flow still triggers publish on release creation

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Refactored the release automation to use a centralized publishing workflow, improving the consistency and maintainability of the package publication process.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Mar 21, 2026

Caution

Review failed

Pull request was closed or merged during review

📝 Walkthrough

Walkthrough

This pull request refactors GitHub Actions workflows by extracting PyPI publishing logic into a new reusable workflow file and updating the release workflow to delegate publishing to it instead of performing the steps inline.

Changes

Cohort / File(s) Summary
New Publish Workflow
.github/workflows/publish.yml
New reusable workflow for publishing to PyPI. Accepts tag input, checks out repository at specified tag, sets up uv and Python 3.12, builds package via uv build, and publishes to PyPI using pypa/gh-action-pypi-publish.
Release Workflow Refactoring
.github/workflows/release.yml
Removed inline PyPI publishing steps from publish job and replaced with call to reusable workflow ./.github/workflows/publish.yml, passing release tag as input. Eliminates redundant job metadata (runner, timeout, environment configuration).

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 From tangled steps we hop away,
A shiny workflow leads the way,
Reusable and clean, oh what a feat!
Now release and publish both compete,
Making CI pipelines sweet! 🐾

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly summarizes the main change: extracting the publish job into a separate, reusable GitHub Actions workflow.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ci/add-publish-workflow

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@FBumann FBumann merged commit a23df5c into main Mar 21, 2026
10 of 11 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