Skip to content

Commit 7cdf891

Browse files
authored
Create deploy.yml
1 parent 61decb9 commit 7cdf891

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# .github/workflows/deploy.yml
2+
3+
name: Deploy Quarto Website
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out repository
15+
uses: actions/checkout@v4
16+
17+
# This action sets up R and caches packages based on your DESCRIPTION file
18+
- name: Set up R and cache dependencies
19+
uses: r-lib/actions/setup-r-dependencies@v2
20+
with:
21+
packages: any::local # The 'any::local' tells it to look for the DESCRIPTION file
22+
23+
# Your script to rebuild the RDS files in the 'tables' directory
24+
- name: Run data build script
25+
run: Rscript build_data_ehm_site.R
26+
27+
# The magic step: render and deploy the site
28+
- name: Render and Deploy
29+
uses: quarto-dev/quarto-actions/publish@v2
30+
with:
31+
target: gh-pages # Deploys to the gh-pages branch
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)