Skip to content

Commit 74a8ffe

Browse files
committed
Adds deployment workflow
1 parent 74f3875 commit 74a8ffe

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Render and Deploy Dashboard
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths:
7+
- 'data/**'
8+
- '*.qmd'
9+
- '_quarto.yml'
10+
workflow_dispatch: # Allow manual triggering
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: false
20+
21+
jobs:
22+
render-and-deploy:
23+
runs-on: ubuntu-latest
24+
steps:
25+
- name: Checkout repository
26+
uses: actions/checkout@v4
27+
28+
- name: Set up Quarto
29+
uses: quarto-dev/quarto-actions/setup@v2
30+
with:
31+
version: release
32+
33+
- name: Set up R
34+
uses: r-lib/actions/setup-r@v2
35+
with:
36+
r-version: '4.3'
37+
38+
- name: Install R dependencies
39+
run: |
40+
install.packages(c("jsonlite", "lubridate", "dplyr", "purrr", "DT", "plotly", "knitr", "htmltools"))
41+
shell: Rscript {0}
42+
43+
- name: Render Quarto site
44+
run: quarto render
45+
46+
- name: Setup Pages
47+
uses: actions/configure-pages@v3
48+
49+
- name: Upload pages artifact
50+
uses: actions/upload-pages-artifact@v2
51+
with:
52+
path: docs/
53+
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)