-
Notifications
You must be signed in to change notification settings - Fork 209
67 lines (57 loc) · 1.63 KB
/
build-site.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
66
67
on:
schedule:
- cron: '0 23 * * *'
name: netlify-quarto-gt-examples-site
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
version: pre-release
- name: Print Quarto version
run: |
quarto --version
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2'
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages: |
gt
shiny
tidyverse
dplyr
tidyr
ggplot2
lubridate
paletteer
janitor
any::sessioninfo
dependencies: '"hard"'
- name: Install package
run: R CMD INSTALL .
- name: Generate Quarto files for website
run: |
Rscript -e 'gt:::write_gt_examples_qmd_files()'
- name: Build Quarto site
run: |
quarto render gt_qmd_examples
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: 'gt_qmd_examples/_site'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: false
enable-commit-comment: true
enable-commit-status: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1