Backfill plan expansions into topics 7, 13, 20, 26 #2
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
| name: book | |
| on: | |
| push: | |
| branches: [master] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install mdbook + mdbook-mermaid | |
| uses: taiki-e/install-action@v2 | |
| with: | |
| tool: mdbook,mdbook-mermaid | |
| - name: Install mdbook-pdf | |
| uses: baptiste0928/cargo-install@v3 | |
| with: | |
| crate: mdbook-pdf | |
| - name: Add mermaid assets | |
| run: mdbook-mermaid install . | |
| - name: Build HTML + PDF | |
| # PDF backend enabled via env so plain local `mdbook build` needs only mdbook-mermaid. | |
| env: | |
| MDBOOK_OUTPUT__PDF: '{ "trying-times": 3 }' | |
| run: mdbook build | |
| - name: Bundle PDF into site | |
| run: cp book/pdf/output.pdf book/html/database-learning-path.pdf | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: book/html | |
| deploy: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |