39 lines
930 B
YAML
39 lines
930 B
YAML
on:
|
|
push:
|
|
branches: main
|
|
|
|
workflow_dispatch:
|
|
|
|
name: Render and Publish
|
|
|
|
jobs:
|
|
build-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Quarto
|
|
uses: quarto-dev/quarto-actions/setup@v2
|
|
with:
|
|
# To install LaTeX to build PDF book
|
|
tinytex: false
|
|
# uncomment below and fill to pin a version
|
|
# version: SPECIFIC-QUARTO-VERSION-HERE
|
|
|
|
- name: Render Site
|
|
uses: quarto-dev/quarto-actions/render@v2
|
|
with:
|
|
to: html
|
|
|
|
- name: Setup Pages
|
|
uses: actions/configure-pages@v3
|
|
- name: Upload artifact
|
|
uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
# Upload entire repository
|
|
path: 'docs/'
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v2
|
|
|