Skip to content

fix: ensure the pixi default environment is activated #84

fix: ensure the pixi default environment is activated

fix: ensure the pixi default environment is activated #84

Workflow file for this run

name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
pull_request:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
with:
path: /var/lib/apt
key: apt-cache-v2
restore-keys: |
apt-cache-v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
curl \
bzip2 \
ca-certificates \
dvipng \
texlive-fonts-recommended \
texlive-fonts-extra \
texlive-latex-extra \
cm-super
- name: Checkout repository
uses: actions/checkout@v5
with:
fetch-depth: 200
fetch-tags: true
ref: ${{ github.ref }}
- uses: prefix-dev/[email protected]
with:
pixi-version: v0.55.0
run-install: false
- run: pixi lock --check
- name: Install project environment
run: pixi install --locked
# Build the page
- name: Build the book
run: pixi run build-book
# Push the book's HTML to github-pages
- name: GitHub Pages action
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html