Skip to content

Merge pull request #111 from dfe-analytical-services/meta-label-missi… #51

Merge pull request #111 from dfe-analytical-services/meta-label-missi…

Merge pull request #111 from dfe-analytical-services/meta-label-missi… #51

on:
push:
branches:
- master
name: deploy-shiny
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: Install git2r dependencies
run: sudo apt-get install -y libgit2-dev
- uses: r-lib/actions/setup-renv@v2
with:
profile: '"shiny"'
- name: Install rsconnect
shell: Rscript {0}
run: |
if (!requireNamespace("renv", quietly = TRUE)) install.packages("renv")
renv::install("[email protected]")
- name: Push to shinyApps.io
run: >
Rscript
-e "rsconnect::setAccountInfo(name = 'department-for-education', token = '${{secrets.SHINYAPPS_TOKEN}}', secret = '${{secrets.SHINYAPPS_SECRET}}')"
-e "rsconnect::deployApp(forceUpdate=TRUE)"