-
Notifications
You must be signed in to change notification settings - Fork 213
62 lines (52 loc) · 1.4 KB
/
connect-deploy.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
on:
schedule:
- cron: '15 23 * * *'
name: connect-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
rsconnect
any::sessioninfo
dependencies: '"hard"'
- name: Install package
run: R CMD INSTALL .
- name: Generate Quarto files for the website
run: |
Rscript -e 'gt:::write_gt_examples_qmd_files()'
- name: Build Quarto site
run: |
quarto render gt_qmd_examples
- name: Publish to Connect
uses: quarto-dev/quarto-actions/publish@v2
with:
target: connect
path: gt_qmd_examples
render: false
CONNECT_SERVER: ${{ secrets.CONNECT_SERVER }}
CONNECT_API_KEY: ${{ secrets.CONNECT_API_KEY }}