Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
83b774218This file is pinned to the selected release. Download the original to open it in your design tool.
name: Docs website
on:
push:
branches:
- main
jobs:
playground:
name: Docs website
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- uses: actions-rs/cargo@v1
with:
command: install
args: mdbook-mermaid
- name: Add mermaid assets
run: |
mdbook-mermaid install doc
- name: mdbook
run: mdbook build doc/
- name: Install and Run Zola
run: |
sudo snap install --edge zola
zola -r web/ build -o public/
- name: Add docs to website
run: |
mv ./doc/book/ public/docs
- name: Create CNAME file
run: |
echo 'filamenthdl.com' > ./public/CNAME
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public/