chore: Kona v1.2.12 (#136) #148
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: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| publish: | |
| name: Publish to GitHub Pages | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: write | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: risc0/risc0/.github/actions/rustup@main | |
| - name: Setup mdBook | |
| run: cargo install mdbook --version 0.4.52 | |
| - name: Setup mdBook extensions | |
| run: cargo install mdbook-mermaid --version 0.16.2 | |
| - name: Setup mdBook admonish | |
| run: cargo install mdbook-admonish --version 1.20.0 | |
| - name: Build book | |
| working-directory: ./book | |
| run: mdbook build | |
| # Publish if running from main branch | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./book/book |