Skip to content

ci: add manual marketplace release workflow#539

Closed
will-yuponce-db wants to merge 1 commit into
mainfrom
ci/manual-marketplace-release
Closed

ci: add manual marketplace release workflow#539
will-yuponce-db wants to merge 1 commit into
mainfrom
ci/manual-marketplace-release

Conversation

@will-yuponce-db

Copy link
Copy Markdown
Contributor

What

A manual (workflow_dispatch) Release to Marketplace workflow that wraps the steps in CONTRIBUTING.md > Release Process behind one Run workflow button, with editable input fields.

Input fields

  • version (required) — X.Y.Z, drives src/scripts/bump_version.py.
  • release_tag — defaults to v<version>.
  • marketplace_tag — defaults to marketplace-v<version> (the tag family the Marketplace listing tracks).
  • create_github_release (default true), deploy (default false).

What it does

  1. Validates the version, resolves the tags, fails fast if a tag already exists.
  2. Runs bump_version.py to sync the version across pyproject.toml, backend/src/__init__.py, and both package.jsons.
  3. Commits chore: bump version to <version>, tags with both tag families, pushes the commit + tags.
  4. Cuts a GitHub Release on the marketplace tag with auto-generated notes.
  5. Optional Databricks deploy (placeholder — see below).

Draft — needs confirmation before merge

  1. RELEASE_TOKEN secret. The bump commit pushes to main, which is now protected by the merge-queue ruleset. The token must belong to a bypass actor (org admin PAT). Tags aren't branch-protected, so they push fine under GITHUB_TOKEN. Falls back to GITHUB_TOKEN (which will fail the commit push on protected main).
  2. The deploy step is a placeholder. The repo has no script that publishes the Databricks Marketplace listing itself — only version/tag tooling + the documented databricks bundle deploy / apps deploy. Need the exact publish command and which Databricks secrets exist (DATABRICKS_HOST/DATABRICKS_TOKEN or SP OAuth) before enabling it.

Open question

The current in-repo version is 0.6.1 but marketplace-v* tags run ahead (latest marketplace-v0.6.4) — confirm whether the version field should track the marketplace line or the pyproject.toml line.

This pull request and its description were written by Isaac.

Adds a workflow_dispatch 'Release to Marketplace' workflow that wraps the
manual steps in CONTRIBUTING.md > Release Process behind one button:

- version input field (required) drives src/scripts/bump_version.py
- editable release_tag (default v<version>) and marketplace_tag
  (default marketplace-v<version>) fields
- commits the bump to main, tags the commit with both tag families,
  pushes, and cuts a GitHub Release
- optional Databricks deploy step (placeholder pending the exact publish
  command + secrets)

Notes for review:
- Runs on the protected runner group (org IP allow list).
- Pushing the bump commit to protected main needs RELEASE_TOKEN (an org
  admin / bypass-actor PAT); tags are not branch-protected.

Co-authored-by: Isaac
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