Skip to content

Commit 35b4e37

Browse files
committed
add extention
1 parent 5302b6f commit 35b4e37

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/publish-quarto.yaml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
name: Render and Publish site
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pages: write
13+
id-token: write
14+
15+
steps:
16+
- name: Check out repository
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Quarto
20+
uses: quarto-dev/quarto-actions/setup@v2
21+
env:
22+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
with:
24+
# To install LaTeX to build PDF book
25+
tinytex: true
26+
# uncomment below and fill to pin a version
27+
# version: SPECIFIC-QUARTO-VERSION-HERE
28+
29+
- name: Render Quarto Project
30+
uses: quarto-dev/quarto-actions/render@v2
31+
with:
32+
to: docs # If set, it will be equivalent to `quarto render --to html`
33+
path: site
34+
35+
- name: Upload static files as artifact
36+
id: deployment
37+
uses: actions/upload-pages-artifact@v3
38+
with:
39+
path: docs/
40+
41+
deploy:
42+
runs-on: ubuntu-latest
43+
needs: build
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)