File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments