Add external link text code from dfeshiny (#115) #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
- master | |
name: Showcase app deploy | |
jobs: | |
deployShiny: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Load packages and push to shinyapps.io | |
shell: Rscript {0} | |
run: | | |
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools") | |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv") | |
renv::install("shinyjs") | |
devtools::install() | |
devtools::load_all() | |
renv::install("rsconnect") | |
rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}') | |
shiny_app <- run_example() | |
rsconnect::deployApp(shiny_app, forceUpdate = TRUE) |