Skip to content

Commit 7d594bc

Browse files
committed
ci(render): add action to render quarto and publish on github pages
1 parent 28df9e5 commit 7d594bc

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/quarto_publish.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Update GitHub pages
2+
run-name: Render quarto and publish on GitHub pages
3+
4+
# Source: https://quarto.org/docs/publishing/github-pages.html
5+
6+
on:
7+
push:
8+
branches: main
9+
workflow_dispatch:
10+
11+
jobs:
12+
build-deploy:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
steps:
17+
- name: Check out repository
18+
uses: actions/checkout@v4
19+
20+
- name: Set up Quarto
21+
uses: quarto-dev/quarto-actions/setup@v2
22+
23+
- name: Render and publish to GitHub pages
24+
uses: quarto-dev/quarto-actions/publish@v2
25+
with:
26+
target: gh-pages
27+
path: index.qmd
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)