-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (56 loc) · 1.71 KB
/
build.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
60
61
62
63
64
65
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches:
- main
# paths-ignore:
# - '**.md'
paths:
- '**.qmd'
- '**.yml'
- '**.bib'
- '**.scss'
name: build
jobs:
build-book:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Include submodules
uses: actions/checkout@v3
with:
submodules: recursive
- uses: r-lib/actions/setup-pandoc@v2 # v3 now available
with:
pandoc-version: '3.1.2'
- name: Install missing system dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install libglpk-dev
- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
#- uses: r-lib/actions/setup-r-dependencies@v2
- uses: r-lib/actions/setup-renv@v2
- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: netlify
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# - name: Build Quarto site
# run: |
# quarto render --to all
#
# - name: Deploy to Netlify
# env:
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# run: |
# npm install netlify-cli -g
# netlify deploy --prod --dir _book
#