name: Deploy the documentation on: push: branches: - main jobs: pages: name: GitHub Pages runs-on: ubuntu-latest steps: - name: Checkout the code uses: actions/checkout@v3 - name: Setup mdBook uses: peaceiris/actions-mdbook@adeb05db28a0c0004681db83893d56c0388ea9ea # v1.1.14 with: mdbook-version: '0.4.12' - name: Build the documentation run: mdbook build - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@de7ea6f8efb354206b205ef54722213d99067935 # v3.8.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./target/book