Publishes a Rust crate - by default, to crates.io - with all of its features enabled.
steps:
- uses: actions/checkout@v4
- uses: giancosta86/aurora-github/actions/publish-rust-crate@v7
with:
cargo-token: ${{ secrets.CARGO_TOKEN }}
Please, note: this action is designed for publication only - not for verification: you may want to use verify-rust-crate for that.
-
Run enforce-branch-version, forwarding the
enforce-branch-version
input to itsmode
input. -
Run publish-github-pages with the
optional
flag enabled -
Run
cargo publish
, with the--all-features
flag
-
cargo-token
is not mandatory whendry-run
is enabled. -
The requirements for publish-github-pages if
website-directory
references an existing directory. -
Before the first publication, running with
dry-run
set to true is recommended.
Name | Type | Description | Default value |
---|---|---|---|
dry-run |
boolean | Run a simulated publication via --dry-run |
false |
cargo-token |
string | The secret token for publishing to the registry | |
document-all-features |
boolean | Enable Rustdoc for all features | true |
website-directory |
string | Relative directory containing the project website | website |
enforce-branch-version |
inject ,check ,skip |
How the branch version should be enforced | inject |
project-directory |
string | The directory containing Cargo.toml |
. |