generated from coatless-tutorials/quarto-book-template
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (53 loc) · 1.88 KB
/
quarto-render.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
on:
workflow_dispatch: {}
pull_request:
branches: [main, master]
push:
# only trigger on main/master branches, not on tags
branches: [main, master]
name: quarto-render
jobs:
quarto-linux:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
# Obtain a copy of the repository on the runner
- name: Check out repository
uses: actions/checkout@v3
# Install Quarto
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# Setup pandoc (might be included with Quarto action?)
- uses: r-lib/actions/setup-pandoc@v2
# Setup R
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
# Handle installing R packages from DESCRIPTION file
- uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::ggplot2, local::.
# Download latest version of Python
#- uses: actions/setup-python@v4
# with:
# python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
# cache: 'pip'
# Install jupyter via pip if it is not part of your requirements.txt
# - name: "Install Jupyter Notebooks via Pip"
# run: |
# pip install jupyter
# Install python dependencies from requirements via pip
#- name: "Install Python dependencies via Pip"
# run: |
# pip install -r requirements.txt
# Render the Quarto book using GitHub actions and publish
# We are using the built-in {{GITHUB_PAT}} environment variable.
- name: Publish to GitHub Pages (and render)
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
#path: _book