Skip to content

Add external link text code from dfeshiny (#115) #6

Add external link text code from dfeshiny (#115)

Add external link text code from dfeshiny (#115) #6

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)