Skip to content

chore: fix release docs and bump version to 2.0.1 #4

chore: fix release docs and bump version to 2.0.1

chore: fix release docs and bump version to 2.0.1 #4

Workflow file for this run

name: Publish to crates.io
on:
push:
tags:
- 'v*'
env:
CARGO_TERM_COLOR: always
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-publish-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --all-features --release
- name: Run all tests
run: cargo test --all-features
- name: Run integration tests
run: cargo test --all-features --test '*'
- name: Run doc tests
run: cargo test --doc
- name: Publish solverforge-maps
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}