-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.35 KB
/
shiny-quarto-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
# 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, master]
name: shiny-quarto-deploy
jobs:
shiny-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
# To install LaTeX to build PDF book
tinytex: true
# uncomment below and fill to pin a version
# version: 0.9.600
- name: Set up R Environment
uses: r-lib/actions/setup-renv@v2 # Installs packages from renv lockfile
with:
cache-version: 1
- name: Install {rsconnect} and {quarto}
run: |
renv::install("rsconnect")
renv::install("quarto")
shell: Rscript {0}
- name: Authorize and deploy app
env:
APPNAME: faithful
ACCOUNT: kittipos
SERVER: shinyapps.io
run: |
rsconnect::setAccountInfo("${{ secrets.RSCONNECT_USER }}", "${{ secrets.RSCONNECT_TOKEN }}", "${{ secrets.RSCONNECT_SECRET }}")
rsconnect::deployApp(appName = "${{ env.APPNAME }}", account = "${{ env.ACCOUNT }}", server = "${{ env.SERVER }}", quarto = quarto::quarto_path())
shell: Rscript {0}