Skip to content

fix: force deployment overtop existing application, addresses CI/CD b… #22

fix: force deployment overtop existing application, addresses CI/CD b…

fix: force deployment overtop existing application, addresses CI/CD b… #22

# validate YAML
# https://codebeautify.org/yaml-validator
name: github-actions
on: [push]
jobs:
build-deploy:
name: build-deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# https://github.com/r-lib/actions/tree/master/setup-r
- uses: r-lib/actions/setup-r@v2
with:
r-version: '4.2.1' # The R version to download
- run: sudo apt-get install libgdal-dev libudunits2-dev
- run: Rscript -e "install.packages(c('rsconnect', 'renv', 'shiny', 'tidyverse', 'lubridate', 'shinyWidgets', 'DT', 'plotly', 'readr', 'shinydashboard', 'shinyjs', 'shinyBS'))"
- name: Push to shinyapps.io
run: |
Rscript -e "rsconnect::setAccountInfo(name=${{secrets.SHINYAPPS_NAME}}, token=${{secrets.SHINYAPPS_TOKEN}}, secret=${{secrets.SHINYAPPS_SECRET}})"
Rscript -e "rsconnect::deployApp(forceUpdate=TRUE)"