v0.0.1 #1
Workflow file for this run
This file contains 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
name: crate | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
name: Build and publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Rust | |
run: | | |
rustup update nightly | |
rustup default nightly | |
- name: Build | |
run: | | |
cargo build --verbose | |
cargo test --verbose | |
- name: Publish to crates.io | |
env: | |
CARGO_REGISTRY_TOKEN: "${{secrets.CARGO_REGISTRY_TOKEN}}" | |
run: cargo publish --verbose |