Repository navigation
ci: publish tole-core to crates.io on release - #50
Merged
Merged
Conversation
Mirrors the uteke release pipeline: on a published GitHub release (or manual dispatch), publish tole-core with the org-level CARGO_REGISTRY_TOKEN secret (now selected for this repo). Idempotent — crates.io rejects an already-published version, so re-runs are no-ops.
|
|
||
| - uses: dtolnay/rust-toolchain@stable | ||
|
|
||
| # Only publish on real releases (workflow_dispatch runs are |
🔍 Cora AI Code Review✅ No issues found. Code looks good! Review powered by cora-code · BYOK · MIT |
CodeCora caught a real flaw on PR #50: continue-on-error made genuine failures (bad token, compile error) indistinguishable from the already-published no-op — the workflow always reported success. Now the step classifies: exit 0 on success AND on an explicit already-published rejection (matched in the log), exit 1 on anything else. The job outcome now tells the truth.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds
.github/workflows/publish.yml: on a published GitHub release (orworkflow_dispatch), publishtole-coreto crates.io using the org-levelCARGO_REGISTRY_TOKENsecret — now selected for this repo (7 repos total, still scoped, not org-wide).Mirrors the proven uteke release pipeline pattern (
cargo publish --token … -p <crate>,continue-on-errorso re-runs/already-published versions are no-ops).Why
Phase 1 of the uteke-mobile integration plan:
tole-coremust be consumable astole-core = "0.2"fromuteke-ffi(same asuteke-coretoday). The v0.2.0 tag and release already exist; once this merges, the workflow can be dispatched to publish v0.2.0.Testing
Workflow YAML mirrors the production pattern from uteke's release.yml. The publish itself will be verified by dispatching it after merge (idempotent design makes this safe).