Skip to content

👷 ci: add cargo publish workflow#1335

Merged
harehare merged 1 commit intomainfrom
chore/github-actions-cargo-publish
Feb 25, 2026
Merged

👷 ci: add cargo publish workflow#1335
harehare merged 1 commit intomainfrom
chore/github-actions-cargo-publish

Conversation

@harehare
Copy link
Copy Markdown
Owner

  • Add .github/workflows/cargo-publish.yml for crates.io publishing

Closes #1133

Copilot AI review requested due to automatic review settings February 25, 2026 12:57
@harehare harehare force-pushed the chore/github-actions-cargo-publish branch from a56d556 to 2bcc7b0 Compare February 25, 2026 12:58
- Add .github/workflows/cargo-publish.yml for crates.io publishing

Closes #1133
@harehare harehare force-pushed the chore/github-actions-cargo-publish branch from 2bcc7b0 to 188b1df Compare February 25, 2026 12:58
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an automated GitHub Actions workflow intended to publish the Rust workspace crates to crates.io on version tag pushes, aligning with the repo’s release automation goals (issue #1133).

Changes:

  • Added a new cargo-publish.yml workflow triggered on v* tag pushes (and manual dispatch) to dry-run and publish.
  • Updated .gitignore to ignore mutants.out.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.

File Description
.gitignore Ignores mutants.out output files.
.github/workflows/cargo-publish.yml New workflow intended to publish crates to crates.io on tag pushes.

Comment on lines +15 to +16
- name: Verify packages can be published
run: cargo publish --dry-run --workspace
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

Line contains a stray non-YAML character () and large trailing whitespace after the step name. This will make the workflow file invalid YAML and prevent GitHub Actions from loading it. Remove the extra character/whitespace so the name: value is plain text.

Copilot uses AI. Check for mistakes.
Comment on lines +16 to +18
run: cargo publish --dry-run --workspace
- name: Publish to crates.io
run: cargo publish --workspace
Copy link

Copilot AI Feb 25, 2026

Choose a reason for hiding this comment

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

cargo publish is being run from the workspace root (which is a virtual manifest) and uses --workspace. In this repo the root Cargo.toml is [workspace]-only, and the workspace includes members with publish = false (e.g. crates/mq-ffi, crates/mq-wasm, crates/mq-python). As written, this step is likely to fail or attempt to publish crates that are intentionally non-publishable. Consider publishing explicit crates (via -p/--manifest-path) and excluding publish = false members, ideally in dependency order.

Suggested change
run: cargo publish --dry-run --workspace
- name: Publish to crates.io
run: cargo publish --workspace
run: cargo publish --dry-run --manifest-path crates/mq-run/Cargo.toml
- name: Publish to crates.io
run: cargo publish --manifest-path crates/mq-run/Cargo.toml

Copilot uses AI. Check for mistakes.
@harehare harehare merged commit 00073ce into main Feb 25, 2026
6 checks passed
@harehare harehare deleted the chore/github-actions-cargo-publish branch February 25, 2026 13:12
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.

Automate crates.io publish on tag push using GitHub Actions

2 participants