-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (63 loc) · 2.02 KB
/
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
62
63
64
65
66
67
68
69
70
71
72
73
74
on:
schedule:
- cron: "0 0 * * 5"
push:
branches: main
name: Render and Publish
# you need these permissions to publish to GitHub pages
# permissions:
# contents: write
# pages: write
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Install Google Fonts
shell: /bin/bash {0}
run: |
sudo apt update
sudo apt upgrade
sudo apt install -y fonts-noto fonts-noto-color-emoji fonts-noto-mono
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# add software dependencies here and any libraries
# From https://github.com/r-lib/actions/tree/v2-branch/setup-r
- name: Setup R
uses: r-lib/actions/setup-r@v2
# See more at https://github.com/quarto-dev/quarto-actions/blob/main/examples/example-03-dependencies.md
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::rmarkdown
any::downlit
any::knitr
any::skimr
any::ggplot2
any::ggthemes
any::devtools
any::jsonlite
any::yaml
any::lubridate
any::stringr
any::dplyr
any::tidyr
any::purrr
any::readr
any::xml2
any::forcats
any::kableExtra
# NOTE: If Publishing to GitHub Pages, set the permissions correctly
- name: Render Quarto Project
uses: quarto-dev/quarto-actions/render@v2
- name: Publish to GitHub Pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # this secret is always available for github actions
run: |
git config --global user.email "[email protected]"
git config --global user.name "Auto Build 892 Site"
quarto publish gh-pages docs --no-render --no-browser