Skip to content

Commit

Permalink
add deploy to shinyapps.io
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Aug 25, 2023
1 parent ef77280 commit e02cb42
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ $run_dev.*
^CODE_OF_CONDUCT\.md$
^app\.R$
^rsconnect$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
28 changes: 28 additions & 0 deletions .github/workflows/shinyappsio-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy to shinyapps.io
on:

# run on any push
push:

# run on request (via button in actions menu)
workflow_dispatch:

jobs:
deploy:
name: Deploy to shinyapps.io

# 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: deploy
uses: BDSI-Utwente/shinyapps-deploy-github-action@v1
with:
# account and application name (https://<accountName>.shinyapps.io/<appName>)
appName: "shinyMonsUgly"
accountName: "dgranjon"

# token and secret obtained from https://www.shinyapps.io/admin/#/tokens
accountToken: ${{ secrets.SHINYAPPS_TOKEN }}
accountSecret: ${{ secrets.SHINYAPPS_SECRET }}

0 comments on commit e02cb42

Please sign in to comment.