Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
shinyapps CI/CD
  • Loading branch information
ksonda authored May 1, 2024
1 parent 980a99e commit 923cd29
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/main.yml
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

# 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: wdpa-oecm-wizard
accountName: internetofwater

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

0 comments on commit 923cd29

Please sign in to comment.