File tree Expand file tree Collapse file tree 1 file changed +38
-0
lines changed
Expand file tree Collapse file tree 1 file changed +38
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Quarto PR Check
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+
8+ jobs :
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+
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 : " 1.6.42"
22+
23+ - name : Render Quarto Project
24+ uses : quarto-dev/quarto-actions/render@v2
25+
26+ - name : Check if rendering succeeded
27+ run : |
28+ # Ensure the site folder is created
29+ if [ ! -d "docs" ]; then
30+ echo "Rendering failed: docs folder does not exist."
31+ exit 1
32+ fi
33+
34+ - name : Upload static files as artifact
35+ uses : actions/upload-artifact@v4
36+ with :
37+ name : rendered-site
38+ path : docs/
You can’t perform that action at this time.
0 commit comments