Skip to content

deploy-shiny

deploy-shiny #68

Workflow file for this run

name: "deploy-shiny"
on:
workflow_dispatch:
#schedule:
#- cron: "0 4,14 * * *"
push:
branches:
- main
paths:
- respinow_viz/plot_data/submissions/*.csv
jobs:
deploy-shiny:
runs-on: macOS-latest
steps:
- uses: actions/checkout@main
- name: Setup R
uses: r-lib/actions/setup-r@v2
with:
r-version: 4.1.0
- name: Cache R packages
uses: actions/cache@v4
with:
path: ${{ env.R_LIBS_USER }}
key: r-${{ hashFiles('DESCRIPTION') }}
- name: Push to shiny.io
env:
SHINYAPPS_NAME: ${{secrets.SHINYAPPS_NAME}}
SHINYAPPS_TOKEN: ${{secrets.SHINYAPPS_TOKEN}}
SHINYAPPS_SECRET: ${{secrets.SHINYAPPS_SECRET}}
run: |
Rscript ./code/deploy_shiny.R