Skip to content

Merge pull request #20 from shizheng-rlfresh/dependabot/github_action… #57

Merge pull request #20 from shizheng-rlfresh/dependabot/github_action…

Merge pull request #20 from shizheng-rlfresh/dependabot/github_action… #57

Workflow file for this run

name: Book
on:
pull_request:
branches: [main]
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
name: Build book
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Install Python
uses: actions/setup-python@v6
with:
python-version-file: ".python-version"
- name: Install uv
uses: astral-sh/setup-uv@11f9893b081a58869d3b5fccaea48c9e9e46f990 # v8.3.2
with:
version: "0.11.22"
enable-cache: true
cache-dependency-glob: uv.lock
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install dependencies
run: uv sync --locked
- name: Run tests, examples, and HTML book render
run: make check
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: _book
deploy:
name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy Pages artifact
id: deployment
uses: actions/deploy-pages@v5