Skip to content

ci(skills): publish onboarding archive on main pushes - #1067

Merged
phernandez merged 1 commit into
mainfrom
codex/publish-skills-on-push
Jul 15, 2026
Merged

ci(skills): publish onboarding archive on main pushes#1067
phernandez merged 1 commit into
mainfrom
codex/publish-skills-on-push

Conversation

@phernandez

Copy link
Copy Markdown
Member

Why

memory-onboarding includes supporting files, so chat clients need a packaged ZIP rather than a single SKILL.md. That archive should track main continuously instead of waiting for a Basic Memory product release.

What Changed

  • add a dedicated skills publishing workflow triggered by every push to main and by manual dispatch
  • validate and package the canonical skills/ sources
  • create or update a rolling skills-latest GitHub release
  • replace memory-onboarding.zip on each run without marking the rolling release as the product's latest release

Implementation Details

The workflow uses the existing dependency-free validation and packaging scripts. A concurrency group cancels stale runs, and gh release upload --clobber keeps this download URL stable:

https://github.com/basicmachines-co/basic-memory/releases/download/skills-latest/memory-onboarding.zip

Testing

  • uv run python scripts/validate_skills.py skills
  • uv run python scripts/build_skills_dist.py
  • unzip -t dist/skills/memory-onboarding.zip
  • parsed .github/workflows/publish-skills.yml as YAML
  • just package-check

All checks passed.

Risks / Follow-ups

The stable download URL becomes available after this workflow lands on main and completes its first run. The workflow requires contents: write solely to manage the rolling release asset.

Signed-off-by: phernandez <paul@basicmachines.co>

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 31b806de40

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

test -f "$asset"

if gh release view "$RELEASE_TAG" >/dev/null 2>&1; then
gh release upload "$RELEASE_TAG" "$asset" --clobber

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid clobbering the only release asset before upload

When an existing skills-latest release is updated, this uses gh release upload --clobber; the GitHub CLI docs for gh release upload state that --clobber deletes the existing asset before uploading the replacement, so if the runner is cancelled or the upload fails after deletion, the stable releases/download/skills-latest/memory-onboarding.zip URL will be left without an asset until a later successful rerun. This is especially relevant here because the workflow also uses cancel-in-progress: true, so overlapping main pushes can interrupt a publish while it is replacing the only downloadable archive.

Useful? React with 👍 / 👎.

@phernandez
phernandez merged commit 796607f into main Jul 15, 2026
17 checks passed
@phernandez
phernandez deleted the codex/publish-skills-on-push branch July 15, 2026 20:56
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