Skip to content

fix chapters contents (#6) #1

fix chapters contents (#6)

fix chapters contents (#6) #1

Workflow file for this run

name: Publish Website
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
on:
workflow_dispatch:
push:
branches: main
paths:
- 'book/**.qmd'
- 'book/**.yml'
jobs:
quarto:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- name: Install Chrome for mermaid plots
uses: browser-actions/setup-chrome@v1
# optional step when there is python code to execute
- name: Setup Python
uses: conda-incubator/setup-miniconda@v2
with:
python-version: 3.8
channels: conda-forge
miniforge-variant: Mambaforge
activate-environment: quarto-import
environment-file: _import/environment.yml
# optional steps when Rmarkdown code is used
- name: Set up R
uses: r-lib/actions/setup-r@v2
- name: Install packages
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
any::knitr
any::rmarkdown
any::reticulate
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Render Website
run: quarto render book/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'book/_site'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main