Skip to content

Merge pull request #99 from dfe-analytical-services/development #37

Merge pull request #99 from dfe-analytical-services/development

Merge pull request #99 from dfe-analytical-services/development #37

on:
push:
branches:
- master
name: deployShinyApps
jobs:
deploy-shiny:
runs-on: ubuntu-latest
env:
RENV_PATHS_ROOT: ~/.local/share/renv
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.1'
use-public-rspm: true
- name: Install Curl
run: sudo apt install libcurl4-openssl-dev libssl-dev
- name: Install rsconnect
shell: Rscript {0}
run: |
renv::install("rsconnect")
- name: Push to shiny.io
run: >
Rscript
-e "rsconnect::setAccountInfo(name='department-for-education', token='${{secrets.SHINYAPPS_TOKEN}}', secret='${{secrets.SHINYAPPS_SECRET}}')"
-e "rsconnect::deployApp(forceUpdate=TRUE)"