name: github pages on: push: branches: - "master" jobs: deploy: runs-on: ubuntu-latest permissions: contents: write concurrency: group: {{{{raw}}}}${{ github.workflow }}-${{ github.ref }}{{{{/raw}}}} steps: - name: Checkout uses: actions/checkout@v4 - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 with: mdbook-version: "{{mdbook_version}}" - name: Build run: | cd {{folder}} mdbook build - name: Deploy uses: peaceiris/actions-gh-pages@v3 with: github_token: {{{{raw}}}}${{ secrets.GITHUB_TOKEN }}{{{{/raw}}}} publish_dir: {{folder}}/book