Skip to content

attempt to add gh-actions for dplying shiny app #1

attempt to add gh-actions for dplying shiny app

attempt to add gh-actions for dplying shiny app #1

# https://github.com/marketplace/actions/deploy-to-shinyapps-io
name: Deploy to shinyapps.io
on:
# run on any push
push:
branches: [dev_shiny]
release:
types: [published]
# run on request (via button in actions menu)
workflow_dispatch:
jobs:
deploy:
name: Deploy to shinyapps
# allow skipping deployment for commits containing '[automated]' or '[no-deploy]' in the commit message
if: "!contains(github.event.head_commit.message, '[automated]') && !contains(github.event.head_commit.message, '[no-deploy]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: install gtexr
run: install.packages("devtools"); devtools::install_github("rmgpanw/gtexr@dev_shiny")
shell: Rscript {0}
- name: deploy
uses: BDSI-Utwente/shinyapps-deploy-github-action@v1
with:
# account and application name (https://<accountName>.shinyapps.io/<appName>)
appName: gtexr
accountName: rmgpanw
# token and secret obtained from https://www.shinyapps.io/admin/#/tokens
accountToken: ${{ secrets.SHINYAPPS_TOKEN }}
accountSecret: ${{ secrets.SHINYAPPS_SECRET }}
appDir: inst/app