Skip to content

feat: basic setup

feat: basic setup #1

Workflow file for this run

name: Deploy static content to Pages
on:
push:
branches: [ main ]
paths:
- 'src/docs/**'
- 'src/slides/**'
# - 'src/tutorial/**'
pull_request:
types: [opened, synchronize, reopened]
branches: [ main ]
paths:
- 'src/docs/**'
- 'src/slides/**'
# - 'src/tutorial/**'
workflow_dispatch:
concurrency:
group: docs-main-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
name: Build Docusaurus Site
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.14
with:
pixi-version: v0.50.2
cache: true
frozen: true
- run: pixi run -e slides --frozen slides-build
- run: pixi run -e slides --frozen slides-export-pdf
# TODO: figure out how we intend to serve the slides
# TODO: do we want to make an additional documentation site?
# - run: pixi run -e docs --frozen docs-build
# - name: Setup Pages
# uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
path: src/slides/slides-export.pdf
retention-days: 5
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: |
# src/docs/build/
# src/slides/dist/
# deploy:
# name: Deploy to GitHub Pages
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build
# if: github.ref == 'refs/heads/main'
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4