update specifications #199
Workflow file for this run
This file contains hidden or 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
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| - name: Cache dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: npm-${{ hashFiles('package-lock.json') }} | |
| restore-keys: npm- | |
| - name: Install dependencies and build web components | |
| run: | | |
| cd wc/ | |
| npm clean-install | |
| npm run build | |
| ls ../static | |
| ls ../static/assets | |
| cd .. | |
| - name: Install MermaidJS CLI | |
| run: | | |
| npm install @mermaid-js/mermaid-cli | |
| ./mmd.sh | |
| - name: Install Zola | |
| run: | | |
| #sudo snap install --edge zola | |
| curl -L https://github.com/getzola/zola/releases/download/v0.21.0/zola-v0.21.0-x86_64-unknown-linux-gnu.tar.gz -o zola.tar.gz | |
| tar xvf zola.tar.gz | |
| - name: Build website | |
| run: | | |
| ./zola build | |
| - name: Install mdbook | |
| run: | | |
| curl -L https://github.com/rust-lang/mdBook/releases/download/v0.4.52/mdbook-v0.4.52-x86_64-unknown-linux-gnu.tar.gz -o mdbook.tar.gz | |
| tar xvf mdbook.tar.gz | |
| - name: Build docs | |
| run: | | |
| ./mdbook build docs | |