Skip to content

add app name

add app name #4

Workflow file for this run

name: deploy_shinyapps
on:
push:
branches:
- main
- master
workflow_dispatch:
jobs:
deploy_shinyapps:
runs-on: ubuntu-latest
container: rocker/tidyverse:4.4.1
steps:
- uses: actions/checkout@v3
- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
git-crypt libxt6 libglpk-dev
- name: Install packages from renv.lock (with cache)
if: ${{ !env.ACT }}
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2
- name: Install packages from renv.lock (local, no cache)
if: ${{ env.ACT }}
run: |
renv::restore()
shell: Rscript {0}
- name: Configure shinyapps.io account
env:
SHINY_TOKEN: ${{ secrets.SHINY_TOKEN }}
SHINY_SECRET: ${{ secrets.SHINY_SECRET }}
run: |
rsconnect::setAccountInfo(name = "oxfordihtm",
token = Sys.getenv("SHINY_TOKEN"),
secret = Sys.getenv("SHINY_SECRET"))
shell: Rscript {0}
- name: Deploy to shinyapps.io
run: |
rsconnect::deployApp(appName = "ihtm-upload")
shell: Rscript {0}