fix: github action #2
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: Publish Quarto Book | |
| on: | |
| push: | |
| branches: | |
| - quarto-book | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pages: write | |
| jobs: | |
| build-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Pixi | |
| uses: prefix-dev/setup-pixi@v0.8.1 | |
| with: | |
| pixi-version: v0.39.5 | |
| cache: true | |
| - name: Generate Quarto Book Content | |
| run: pixi run generate-book | |
| - name: Render and Publish | |
| run: | | |
| # Configure Git | |
| git config --global user.name "github-actions[bot]" | |
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
| # Use pixi run to ensure quarto is in the environment | |
| pixi run quarto publish gh-pages mybook --no-browser --no-prompt | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |