Skip to content

Commit

Permalink
Merge pull request #40 from priism-center/joemarlo-patch-1
Browse files Browse the repository at this point in the history
Update deploy-shinyapps.yml
  • Loading branch information
joemarlo authored Dec 8, 2023
2 parents 4047aca + 0214016 commit ddf3b13
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy-shinyapps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
push:
branches: [main, master]

env:
RENV_CONFIG_SANDBOX_ENABLED: False

jobs:
deploy-shinyapps:
timeout-minutes: 45
Expand All @@ -15,13 +18,13 @@ jobs:
with:
r-version: '4.2.0'
- uses: priism-center/thinkCausal_dev/.github/setup-renv@master
- name: Install extra dependencies
shell: Rscript {0}
run: install.packages(c("remotes", "rsconnect"))
working-directory: thinkCausal
# - name: Install extra dependencies
# shell: Rscript {0}
# run: install.packages(c("remotes", "rsconnect"))
# working-directory: thinkCausal
- name: Deploy to shinyapps.io
shell: Rscript {0}
run: |
rsconnect::setAccountInfo(name = "${{secrets.SA_ACCOUNT_NAME}}", token = "${{secrets.SA_TOKEN}}", secret = "${{secrets.SA_SECRET}}")
rsconnect::deployApp(appName = 'thinkCausal', account = "${{secrets.SA_ACCOUNT_NAME}}")
rsconnect::deployApp(appName = 'thinkCausal', account = "${{secrets.SA_ACCOUNT_NAME}}", forceUpdate = TRUE)
working-directory: thinkCausal

0 comments on commit ddf3b13

Please sign in to comment.