Skip to content

Add checkout to release publish job#3

Merged
5uck1ess merged 1 commit into
mainfrom
fix-publish-checkout
May 19, 2026
Merged

Add checkout to release publish job#3
5uck1ess merged 1 commit into
mainfrom
fix-publish-checkout

Conversation

@5uck1ess

Copy link
Copy Markdown
Owner

PR #2's release run almost completed — version, create-release, and package all succeeded, draft v1.0.0 was built with tarball + checksums — but `publish` failed at `gh release edit` with "fatal: not a git repository". `cleanup-on-failure` then correctly deleted the tag and draft.

The `publish` job has no `actions/checkout@v4` step, so `gh` can't resolve the target repo from git context. Core devkit's publish job has a checkout step; ours was missing it. Adding for parity.

Test plan

  • CI smoke passes
  • Release workflow on merge: version → create-release → package → publish all green
  • `v1.0.0` tag and published release land on the repo
  • `devkit-codex-1.0.0.tar.gz` and `checksums.txt` attached as release assets

Without actions/checkout, gh release edit fails with
"fatal: not a git repository" because it can't infer the repo from
git context. Matches core devkit's publish job structure.
@5uck1ess
5uck1ess merged commit 98a0507 into main May 19, 2026
2 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