feat: Default base_repo_dir to "/", fix linked worktree resolution
#20
Workflow file for this run
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: Docs (GitHub Pages) | |
| on: | |
| push: | |
| branches: [main] | |
| paths: ['docs/**', '.github/workflows/docs-pages.yml'] | |
| pull_request: | |
| paths: ['docs/**', '.github/workflows/docs-pages.yml'] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build docs | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/configure-pages@v5 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - name: Cache mdBook tools | |
| id: mdbook-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| ~/.cargo/bin | |
| key: ${{ runner.os }}-mdbook-tools-v1-mdbook-0.5.2-excalidraw-2d8f07905f57d1c460ccb9f7279af4f4999b9ee2 | |
| - name: Install mdBook + mdbook-excalidraw | |
| if: steps.mdbook-cache.outputs.cache-hit != 'true' | |
| run: | | |
| cargo install mdbook --version 0.5.2 --locked | |
| cargo install \ | |
| --git https://github.com/peachycloudsecurity/mdbook-excalidraw \ | |
| --rev 2d8f07905f57d1c460ccb9f7279af4f4999b9ee2 \ | |
| mdbook-excalidraw | |
| - name: Build mdBook | |
| run: mdbook build docs | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| with: | |
| path: docs/book | |
| deploy: | |
| name: Deploy to GitHub Pages | |
| if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 |