core: fix typo in crate name last commit, add crates.io badge to README #17
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: docs | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "metre/**" | |
- "metre-macros/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
branches: [ main, dev ] | |
pull_request: | |
paths: | |
- "metre/**" | |
- "metre-macros/**" | |
- "Cargo.toml" | |
- "Cargo.lock" | |
branches: [ main, dev ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
# docs.rs run docs with a nighlty toolchain | |
# the crate uses nighly features only for documentation | |
toolchain: nightly | |
- name: Cargo Docs | |
working-directory: ./metre | |
run: rustup run nightly cargo rustdoc --all-features -- --cfg docsrs | |