Skip to content

ci(release): chain crates.io publish into the tag run - #519

Merged
ajianaz merged 2 commits into
developfrom
ci/publish-from-tag
Nov 4, 2026
Merged

ajianaz merged 2 commits into
developfrom
ci/publish-from-tag

Conversation

@ajianaz

@ajianaz ajianaz commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

What (description of the change)

Close the tag→crates.io gap found while cutting v0.10.1: a tag push fired release.yml (binaries + GitHub Release) but NOT publish.yml (crates.io) — the Release is created by softprops INSIDE the release run, and GitHub does not emit a release: published event for workflows from a run that created it. v0.10.1 needed a manual dispatch.

  • publish.yml: add workflow_call: {} trigger (release: published + dispatch kept).
  • release.yml: after the GitHub Release step, call ./.github/workflows/publish.yml — one tag now runs binaries AND crates.io in the same run; already-published versions are absorbed idempotently by publish.yml's explicit classification.

Why (the problem you're solving)

"Harusnya dari tag kan memang?" — yes: one tag should drive BOTH distribution channels. Today it drove only one, and v0.10.1's crates.io publish needed a manual dispatch. This removes the manual step permanently.

Testing (how you verified this works)

  • YAML validated x2. The called workflow is the exact one proven live twice today (v0.10.0 release-published + v0.10.1 dispatch: core=published tui=published cli=published).
  • UNVERIFIED until the next tag: the chained call inside release.yml (tag-triggered only). Idempotency on re-tags is already proven (v0.10.0 re-publish reported already-published and stayed green).

Comment thread .github/workflows/release.yml Outdated
# but left crates.io behind (v0.10.1 needed a manual dispatch).
# Already-published versions are absorbed idempotently by publish.yml.
- name: Publish to crates.io (chained)
uses: ./.github/workflows/publish.yml
Comment thread .github/workflows/release.yml Outdated
# but left crates.io behind (v0.10.1 needed a manual dispatch).
# Already-published versions are absorbed idempotently by publish.yml.
- name: Publish to crates.io (chained)
uses: ./.github/workflows/publish.yml
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

🔍 Cora AI Code Review

✅ No issues found. Code looks good!


Review powered by cora-code · BYOK · MIT

@ajianaz
ajianaz merged commit b573af2 into develop Nov 4, 2026
16 checks passed
@ajianaz
ajianaz deleted the ci/publish-from-tag branch November 4, 2026 13:54
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.

2 participants