fix: Mualani skill #136
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: Build docs | |
on: | |
push: | |
branches: [ main ] | |
# pull_request: | |
# branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Setup mdbook | |
run: wget https://github.com/rust-lang/mdBook/releases/download/v0.4.25/mdbook-v0.4.25-x86_64-unknown-linux-musl.tar.gz && tar -xvzf mdbook-v0.4.25-x86_64-unknown-linux-musl.tar.gz && rm ./mdbook-v0.4.25-x86_64-unknown-linux-musl.tar.gz | |
- name: Build MONA_DSL docs | |
run: ./mdbook build mona_dsl_book | |
- name: Build main site docs | |
run: ./mdbook build mona_book | |
- name: Build core docs | |
run: cargo doc --manifest-path mona_core/Cargo.toml --no-deps --document-private-items --lib | |
- name: Create a big dir | |
run: mkdir dist_docs_no_ignore | |
- name: Copy docs | |
run: cp -R mona_dsl_book/book dist_docs_no_ignore/dsl && cp -R mona_book/book dist_docs_no_ignore/main && cp -R mona_core/target/doc dist_docs_no_ignore/mona_core | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: docs | |
path: dist_docs_no_ignore |