Publikacja crate’a Rust na crates.io za pomocą Taskfile.
fmt ────┐
clippy ─┤── (parallel) ── build ── publish (dry-run + publish)
test ───┘
Brak sekcji environments — nie potrzebna dla pipeline publikacji.
taskfile auth setup --registry crates # jednorazowo
taskfile run fmt # cargo fmt --check
taskfile run clippy # cargo clippy
taskfile run test # cargo test
taskfile run build # cargo build --release
taskfile run build-cross # Linux + macOS + Windows
taskfile run publish --var VERSION=1.0.0 # dry-run + publish
taskfile run release --var VERSION=1.0.0 # tag + test + publish
taskfile run verify # cargo search
| Zmienna | Gdzie uzyskać |
|---|---|
CARGO_TOKEN |
https://crates.io/settings/tokens |
taskfile auth setup --registry crates