diff --git a/.github/workflows/deploy-shiny.yaml b/.github/workflows/deploy-shiny.yaml index 1ec3cbd..33a317f 100644 --- a/.github/workflows/deploy-shiny.yaml +++ b/.github/workflows/deploy-shiny.yaml @@ -80,8 +80,9 @@ jobs: - name: Install rsconnect shell: Rscript {0} run: | - install.packages("rsconnect") - + if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") + renv::install("rsconnect@0.8.29") + # Tokens are stored as secrets in GitHub to make sure only DfE analysts can publish apps in our shiny.io area # Navigate to Settings > Secrets to add and view secrets. These can also be things like admin login and passwords for SQL databases. # Get in touch with the Stats Development team if you need to add the below secrets to publish to shinyapps.io @@ -90,4 +91,4 @@ jobs: run: > Rscript -e "rsconnect::setAccountInfo(name='department-for-education', token='${{secrets.SHINYAPPS_TOKEN}}', secret='${{secrets.SHINYAPPS_SECRET}}')" - -e "rsconnect::deployApp()" \ No newline at end of file + -e "rsconnect::deployApp()"