workflows: Add release and cargo publish workflows#181
Open
Sinan-Karakaya wants to merge 5 commits into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Adds automated release and publishing support for the Rust workspace, aiming to standardize GitHub-tagged releases and crates.io publishing via trusted publishing (OIDC).
Changes:
- Add a
release.ymlworkflow to validate inputs, build release binaries, package artifacts, publish crates, and create a GitHub release forv*tags or manual dispatch. - Add a reusable/manual
cargo-publish.ymlworkflow to publish crates in dependency order using crates.io trusted publishing. - Update
PUBLISHING.mdto document the new automated release/publish processes and checklist updates.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| PUBLISHING.md | Documents the new release + cargo publish automation and updates the release checklist. |
| .github/workflows/release.yml | New workflow to build/package artifacts, invoke crate publishing, and create GitHub releases. |
| .github/workflows/cargo-publish.yml | New reusable/manual workflow to publish workspace crates to crates.io with OIDC trusted publishing. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Introduce new GitHub Actions workflows to automate publishing crates to crates.io using trusted publishing, and to build and package release artifacts for tagged versions. Signed-off-by: Sinan KARAKAYA <sinan.karakaya@canonical.com>
a7e3a3f to
f9a069f
Compare
Collaborator
|
Has it been run at all? |
artiepoole
reviewed
Apr 15, 2026
Contributor
Author
It wouldn't work now for the crates release anyway, so I only tested the GH release for now. The logic should be fine for crates as it's pretty much taken from their official docs. I'll take a look still to know If I can test it locally before. |
Replace bash inline logic checking for Cargo version in github actions with our check_version_bump.py script. Add arguments validating workspace versions against dependency versions as a lockstep check. Signed-off-by: Sinan KARAKAYA <sinan.karakaya@canonical.com>
9cbbe0d to
50a318b
Compare
Replace sequential crate publishing with a single cargo publish --workspace command. Update PUBLISHING.md to reflect the new workflow behavior. Signed-off-by: Sinan KARAKAYA <sinan.karakaya@canonical.com>
239047e to
a520d94
Compare
Updates the release workflow to detect versions with prerelease keywords. When a prerelease is detected, it flags the GitHub release as a prerelease and packages the workspace `.crate` files into an experimental bundle as an additional release asset. Updates `PUBLISHING.md` to document the new behavior. Signed-off-by: Sinan KARAKAYA <sinan.karakaya@canonical.com>
a520d94 to
20f33a9
Compare
Signed-off-by: Sinan KARAKAYA <sinan.karakaya@canonical.com>
514f844 to
4f6297c
Compare
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.
Introduce new GitHub Actions workflows to automate publishing crates to crates.io using trusted publishing, and to build and package release artifacts for tagged versions.