shared-actions/publish-rust-crate
2026-04-24 15:57:40 +02:00
..
action.yml refactor: move action to repo root 2026-04-24 15:57:40 +02:00
README.md refactor: move action to repo root 2026-04-24 15:57:40 +02:00

publish-rust-crate

Build, test, and publish Rust crate to JFrog Cargo registry.

Inputs

Input Required Default Description
jfrog-token Yes JFrog access token for Cargo registry auth
working-directory No . Directory containing Cargo.toml
rust-version No 1.87 Rust toolchain version
cargo-registry-name No jfrog Cargo registry name
run-tests No true Run cargo test before publishing

Usage

- uses: schmalz/shared-actions/.github/actions/publish-rust-crate@v1
  with:
    jfrog-token: ${{ secrets.JFROG_TOKEN }}

Notes

  • The registry token is set via CARGO_REGISTRIES_<NAME>_TOKEN environment variable (registry name is uppercased).
  • The crate version published is whatever is in Cargo.toml -- bump it before calling this action.