Skip to content

Commit bfe523d

Browse files
committed
ci: add workflow
1 parent c91d2c5 commit bfe523d

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
on:
2+
push:
3+
branches: main
4+
pull_request:
5+
branches: main
6+
workflow_dispatch:
7+
8+
name: Build Site
9+
10+
jobs:
11+
build-website:
12+
runs-on: ubuntu-latest
13+
env:
14+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
15+
steps:
16+
- uses: actions/checkout@v2
17+
18+
- uses: quarto-dev/quarto-actions/setup@v2
19+
20+
- name: Render Book project
21+
uses: quarto-dev/quarto-actions/render@v2
22+
with:
23+
to: html
24+
25+
- name: Publish HTML book
26+
uses: quarto-dev/quarto-actions/publish@v2
27+
with:
28+
target: gh-pages
29+
render: false
30+
31+
- name: Deploy 🚀
32+
if: github.event_name != 'pull_request'
33+
uses: JamesIves/[email protected]
34+
with:
35+
branch: gh-pages # The branch the action should deploy to.
36+
folder: website/_site # The folder the action should deploy.

0 commit comments

Comments
 (0)