Skip to content

Commit

Permalink
add devtools install to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cjrace committed Dec 11, 2024
1 parent f9520f8 commit 7af7bba
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/showcase-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,19 @@ jobs:
with:
use-public-rspm: true

- name: Load package
shell: Rscript {0}
run: |
devtools::load_all()
- name: Install rsconnect
- name: Load packages
shell: Rscript {0}
run: |
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::install("shinyjs")
devtools::build()
devtools::load_all()
renv::install("rsconnect")
- name: Push to shinyapps.io
run: >
Rscript
-e "rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')"
-e "shiny_app <- run_example()"
-e "rsconnect::deployApp(shiny_app, forceUpdate = TRUE)"
shell: Rscript {0}
run: |
rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')
shiny_app <- run_example()
rsconnect::deployApp(shiny_app, forceUpdate = TRUE)

0 comments on commit 7af7bba

Please sign in to comment.