-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (30 loc) · 955 Bytes
/
main.yml
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
name: Deploy to shinyapps.io
on:
# run on any push
push:
branches:
- main
# run on request (via button in actions menu)
workflow_dispatch:
jobs:
shiny-deploy:
runs-on: ubuntu-22.04
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
r-version: '4.1.1'
- uses: r-lib/actions/setup-renv@v2
# Step 2: Install R packages
- name: install everything and deploy
env:
RS_TOKEN: ${{ secrets.TOKEN }}
RS_SECRET: ${{ secrets.SECRET }}
run: |
rsconnect::setAccountInfo(name='easyeyes', token=Sys.getenv('RS_TOKEN'), secret=Sys.getenv('RS_SECRET'))
rsconnect::deployApp(appName = 'easyeyes_app', forceUpdate = TRUE)
shell: Rscript {0}