Skip to content

docs: udpate readme

docs: udpate readme #1

Workflow file for this run

name: Continuous Deployment
on:
push:
tags:
- 'v*.*.*' # Match version tags like v1.0.0
jobs:
publish:
name: Publish crates to crates.io
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
- name: Cache Cargo registry and build
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Build and test
run: |
cargo build --workspace --verbose
cargo test --workspace --verbose
- name: Publish crates
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
for crate in $(ls -d */ | grep -v 'target' | sed 's#/##'); do
echo "Publishing crate $crate"
cd $crate
cargo publish --token $CARGO_REGISTRY_TOKEN
cd ..
done