Skip to content

Commit f84ff1d

Browse files
committed
add gh-pages deploy workflow
1 parent 884e164 commit f84ff1d

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Deploy Quarto site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
12+
jobs:
13+
build-deploy:
14+
runs-on: ubuntu-latest
15+
env:
16+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup R
23+
uses: r-lib/actions/setup-r@v2
24+
with:
25+
use-public-rspm: true
26+
27+
- name: Install R dependencies
28+
uses: r-lib/actions/setup-r-dependencies@v2
29+
with:
30+
extra-packages: |
31+
local::.
32+
33+
- name: Setup Quarto
34+
uses: quarto-dev/quarto-actions/setup@v2
35+
36+
- name: Render and deploy to gh-pages
37+
uses: quarto-dev/quarto-actions/publish@v2
38+
with:
39+
target: gh-pages
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)