Fixing doctest #77
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: [push] | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@nightly | |
- name: Generate Docs | |
run: | | |
cargo +nightly doc --no-deps --all-features --workspace | |
env: | |
RUSTDOCFLAGS: "--cfg docsrs" | |
- name: Deploy | |
uses: khonsulabs/sync-to-dossier@main | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/tags/') | |
with: | |
url: ${{ secrets.DOSSIER_URL }} | |
api-key-id: ${{ secrets.DOSSIER_API_KEY_ID }} | |
api-key: ${{ secrets.DOSSIER_API_KEY }} | |
project: muse | |
from: target/doc/ | |
to: /${{ github.ref_name }}/docs | |
guide: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Download mdbook | |
run: | | |
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.36/mdbook-v0.4.36-x86_64-unknown-linux-gnu.tar.gz | tar -xz | |
- name: Build Guide | |
run: | | |
./mdbook build guide | |
- name: Deploy | |
uses: khonsulabs/sync-to-dossier@main | |
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/release' || startsWith(github.ref, 'refs/tags/') | |
with: | |
url: ${{ secrets.DOSSIER_URL }} | |
api-key-id: ${{ secrets.DOSSIER_API_KEY_ID }} | |
api-key: ${{ secrets.DOSSIER_API_KEY }} | |
project: muse | |
from: target/guide/ | |
to: /${{ github.ref_name }}/guide |