-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (48 loc) · 1.45 KB
/
build_quarto_website.yaml
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
# build site!
on:
push:
branches: main
pull_request:
branches: main
#schedule:
# * is a special character in YAML so you have to quote this string
# Trigger once a week, on a Sunday (0)
# - cron: '0 0 * * 0'
#workflow_dispatch:
name: Build Site
jobs:
build-website:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
GITHUB_PAT: ${{ secrets.SUPERSECRET }}
steps:
- uses: actions/checkout@v2
- name: Install Quarto CLI
uses: quarto-dev/quarto-actions/install-quarto@v1
- name: Install libcurl
run: |
sudo apt-get update
sudo apt-get install -y libcurl4-openssl-dev
- name: Put pandoc in PATH
run: |
mkdir -p ~/.local/bin
ln -s $(dirname $(readlink -f $(which quarto)))"/pandoc" ~/.local/bin/pandoc
shell: bash
- name: Set up R and cache dependencies
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
- name: Set up renv
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2
- name: Build site 🔧
run: |
quarto render
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: _site # The folder the action should deploy.