CI: upgrade mdBook and plugins, switch to mdbook-linkcheck2 #258
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: github pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-24.04 | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup mdBook | |
| # https://github.com/jontze/action-mdbook | |
| uses: jontze/action-mdbook@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| # mdbook-version: 'latest' | |
| mdbook-version: "0.5.0" | |
| use-mermaid: true | |
| mermaid-version: "0.17.0" | |
| - name: mdbook-mermaid post-install | |
| run: make post_mermaid | |
| - name: Install mdbook-i18n-helpers | |
| run: make prepare_i18n | |
| - name: Install link checker | |
| run: make prepare_linkcheck | |
| - name: Build | |
| run: make build | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./book |