Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

going back to original setup #100

going back to original setup

going back to original setup #100

Workflow file for this run

name: Build and Deploy Book
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
# we need R for the rpy2 examples
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.5.2'
- name: Install MariaDB Connector/C
run: sudo apt-get update && sudo apt-get install -y libmariadb-dev
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync
- name: Build book
run: |
cd book && uv run myst build --html
- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html