Skip to content

primod API update

primod API update #150

Workflow file for this run

# Based on: https://tarleb.com/posts/quarto-with-gh-pages/
name: Publish Website
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
on:
push:
branches: ['main', 'update/pixi-lock']
pull_request:
jobs:
quarto-html:
name: HTML
runs-on: ubuntu-latest
steps:
# Circumvent this problem: https://github.com/actions/checkout/issues/165
- name: Checkout code with LFS cache
uses: nschloe/action-checkout-with-lfs-cache@v1
- uses: prefix-dev/[email protected]
with:
pixi-version: "latest"
- name: Check Quarto installation and all engines
run: pixi run quarto-check
- name: Render Quarto Project
run: pixi run quarto-render
- name: Publish Quarto Project
if: github.ref == 'refs/heads/main'
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
quarto-pdf:
name: PDF
runs-on: ubuntu-latest
if: false # PDF build hangs indefinitely, disable it for now
steps:
# Circumvent this problem: https://github.com/actions/checkout/issues/165
- name: Checkout code with LFS cache
uses: nschloe/action-checkout-with-lfs-cache@v1
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
- name: Install TinyTex
run: quarto install tinytex
- name: Render Manual
run: "quarto render docs --profile manual --to pdf"
- name: Render Tutorial
# --no-clean to skip cleanup before rendering
run: "quarto render docs --no-clean --profile tutorial --to pdf"
- name: Render Installation Guide
# --no-clean to skip cleanup before rendering
run: "quarto render docs --no-clean --profile install --to pdf"
- name: Upload artifacts
if: github.ref == 'refs/heads/main'
uses: actions/upload-artifact@v4
with:
name: iMOD-Suite-Guides
path: |
docs/_build/iMOD-Suite-User-Guide.pdf
docs/_build/iMOD-Suite-Tutorial.pdf
docs/_build/iMOD-Suite-Installation-Guide.pdf