diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index a114149..6ceb9e2 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,4 +17,4 @@ jobs: TOKEN: ${{secrets.TOKEN}} SECRET: ${{secrets.SECRET}} run: | - bash Rscript deploy.R + bash ./deploy/deploy.sh diff --git a/deploy/Dockerfile b/deploy/Dockerfile new file mode 100644 index 0000000..8489b3f --- /dev/null +++ b/deploy/Dockerfile @@ -0,0 +1,2 @@ +FROM rocker/shiny:4.0.4 +RUN install2.r rsconnect shiny shinyWidgets dygraphs ggplot2 plotly xts dplyr bslib here stringr lubridate viridis diff --git a/deploy.R b/deploy/deploy.R similarity index 100% rename from deploy.R rename to deploy/deploy.R diff --git a/deploy/deploy.sh b/deploy/deploy.sh new file mode 100644 index 0000000..d7308ed --- /dev/null +++ b/deploy/deploy.sh @@ -0,0 +1,3 @@ +#!/usr/bin/env bash + +Rscript -e "source('./deploy/deploy.R')"