Skip to content

Commit 96606e8

Browse files
committed
Add GitHub Actions workflow for Quarto book publishing
1 parent f9ea927 commit 96606e8

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2name: Publish Quarto Project
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-and-deploy:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
steps:
15+
- name: Check out repository
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Quarto
19+
uses: quarto-dev/quarto-actions/setup@v2
20+
with:
21+
version: "pre-release"
22+
23+
- name: Render Quarto Project
24+
uses: quarto-dev/quarto-actions/render@v1
25+
26+
- name: Publish to GitHub Pages
27+
uses: quarto-dev/quarto-actions/publish@v2
28+
with:
29+
target: gh-pages
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)