Skip to content

ci: publish tole-core to crates.io on release - #50

Merged
ajianaz merged 2 commits into
developfrom
ci/publish-workflow
Aug 28, 2026
Merged

ajianaz merged 2 commits into
developfrom
ci/publish-workflow

Conversation

@ajianaz

@ajianaz ajianaz commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

What

Adds .github/workflows/publish.yml: on a published GitHub release (or workflow_dispatch), publish tole-core to crates.io using the org-level CARGO_REGISTRY_TOKEN secret — 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-error so re-runs/already-published versions are no-ops).

Why

Phase 1 of the uteke-mobile integration plan: tole-core must be consumable as tole-core = "0.2" from uteke-ffi (same as uteke-core today). 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).

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.
Comment thread .github/workflows/publish.yml Outdated

- uses: dtolnay/rust-toolchain@stable

# Only publish on real releases (workflow_dispatch runs are
@github-actions

github-actions Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

🔍 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.
@ajianaz
ajianaz merged commit 951b234 into develop Aug 28, 2026
11 checks passed
@ajianaz
ajianaz deleted the ci/publish-workflow branch August 28, 2026 02:27
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