Skip to content

Commit

Permalink
Merge pull request #105 from dfe-analytical-services/deploy-patch-2
Browse files Browse the repository at this point in the history
Update deploy-shiny.yaml
  • Loading branch information
rmbielby authored Nov 7, 2024
2 parents 7e04bab + 3295013 commit 637c985
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/deploy-shiny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,16 @@ jobs:
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Cache renv packages
uses: actions/cache@v1
with:
path: ${{ env.RENV_PATHS_ROOT }}
key: ${{ runner.os }}-renv-${{ hashFiles('**/renv.lock') }}
restore-keys: |
${{ runner.os }}-renv-
- name: Restore renv snapshot
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::restore()
# 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
- name: Install rsconnect
shell: Rscript {0}
run: |
install.packages("rsconnect")
- name: Push to shiny.io
run: >
Expand Down

0 comments on commit 637c985

Please sign in to comment.