Skip to content

Commit 1605272

Browse files
authored
Merge pull request #5 from NHS-Transformation-Unit/aw_dev
Create workflow yaml to re-publish app on merging to main
2 parents c2e4576 + 73ee1f2 commit 1605272

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/deploy-shiny.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Deploy template app to shinyapps.io
7+
8+
jobs:
9+
deploy-shiny:
10+
name: Deploy to shinyapps.io
11+
runs-on: ubuntu-latest
12+
env:
13+
GITHUB_PAT: ${{ secrets.ACCESS_TOKEN }}
14+
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
15+
16+
steps:
17+
- name: 🛎️ Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- id: deploy
22+
name: 💎 Deploy to shinyapps.io
23+
uses: qwert666/shinyapps-actions@main
24+
env:
25+
SHINY_USERNAME: ${{ secrets.SHINYAPPS_ACCOUNT }}
26+
SHINY_TOKEN: ${{ secrets.SHINYAPPS_TOKEN }}
27+
SHINY_SECRET: ${{ secrets.SHINYAPPS_SECRET }}
28+
APP_NAME: 'markov_example'
29+

0 commit comments

Comments
 (0)