Skip to content

Add manual-dispatch release workflow#706

Merged
guysmoilov merged 2 commits into
mainfrom
add-manual-release-workflow
Jul 16, 2026
Merged

Add manual-dispatch release workflow#706
guysmoilov merged 2 commits into
mainfrom
add-manual-release-workflow

Conversation

@guysmoilov

Copy link
Copy Markdown
Member

Summary

  • Adds a workflow_dispatch GitHub Action (.github/workflows/release.yml) that automates the existing manual release process: bump __version__ in dagshub/__init__.py, commit to main, and cut a GitHub Release (auto-generated notes), which in turn triggers the existing python-publish.yml PyPI publish on release.
  • Inputs: bump (patch/minor/major), explicit_version (overrides bump), release_title_suffix (appended to release title), draft (create as draft to review before publishing).

Test plan

  • Run the workflow manually via workflow_dispatch with draft: true on a test version and confirm it bumps the version, commits to main, and creates a draft release without publishing to PyPI.
  • Confirm python-publish.yml still fires correctly when the draft release is published.

@dagshub

dagshub Bot commented Jul 16, 2026

Copy link
Copy Markdown

@coderabbitai

coderabbitai Bot commented Jul 16, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b034c792-f256-4ff0-8bb7-af72f598da58

📥 Commits

Reviewing files that changed from the base of the PR and between cb0c1ac and 6155829.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release.yml
📜 Recent review details
⏰ Context from checks skipped due to timeout. (5)
  • GitHub Check: build (3.10)
  • GitHub Check: build (3.11)
  • GitHub Check: build (3.9)
  • GitHub Check: build (3.12)
  • GitHub Check: build (3.13)

📝 Walkthrough

Walkthrough

Adds a manually triggered GitHub Actions release workflow supporting patch, minor, major, or explicit semantic-version releases, with validation, version commits, pushes to main, and GitHub release creation.

Changes

Release pipeline

Layer / File(s) Summary
Version validation and release execution
.github/workflows/release.yml
Adds release inputs, validates computed and explicit versions against semantic-version and existing-tag rules, updates dagshub/__init__.py, pushes the commit to main, and creates a draft or published release with autogenerated notes.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Sequence Diagram(s)

sequenceDiagram
  participant Maintainer
  participant ReleaseWorkflow
  participant GitRepository
  participant GitHubRelease
  Maintainer->>ReleaseWorkflow: Dispatch with bump or explicit version
  ReleaseWorkflow->>GitRepository: Validate version and existing refs
  ReleaseWorkflow->>GitRepository: Commit version bump and push to main
  ReleaseWorkflow->>GitHubRelease: Create release for the new tag
Loading

Poem

A rabbit pressed “Release” with care,
Bumped the version into the air.
Tags were checked, the notes were spun,
A draft or launch for everyone.
Hop, hop—the new build has begun!

🚥 Pre-merge checks | ✅ 4
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the main change: a manually triggered release workflow.
Description check ✅ Passed The description is directly related and matches the release workflow changes.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-manual-release-workflow

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

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 3


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 048903a5-dd89-4dc5-bb3d-92bd9ab1bda7

📥 Commits

Reviewing files that changed from the base of the PR and between 1759e66 and cb0c1ac.

📒 Files selected for processing (1)
  • .github/workflows/release.yml
📜 Review details
⏰ Context from checks skipped due to timeout. (5)
  • GitHub Check: build (3.11)
  • GitHub Check: build (3.10)
  • GitHub Check: build (3.9)
  • GitHub Check: build (3.13)
  • GitHub Check: build (3.12)
🧰 Additional context used
🪛 zizmor (1.26.1)
.github/workflows/release.yml

[warning] 36-40: credential persistence through GitHub Actions artifacts (artipacked): does not set persist-credentials: false

(artipacked)

Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml
Comment thread .github/workflows/release.yml Outdated
@guysmoilov
guysmoilov merged commit f335633 into main Jul 16, 2026
12 checks passed
@guysmoilov
guysmoilov deleted the add-manual-release-workflow branch July 16, 2026 08:20
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