File tree Expand file tree Collapse file tree 1 file changed +46
-0
lines changed
Expand file tree Collapse file tree 1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change 1+ # https://quartz.jzhao.xyz/hosting#github-pages
2+ name : Deploy Quartz site to GitHub Pages
3+
4+ on :
5+ push :
6+ branches :
7+ - v4
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-22.04
21+ steps :
22+ - uses : actions/checkout@v4
23+ with :
24+ fetch-depth : 0 # Fetch all history for git info
25+ - uses : actions/setup-node@v4
26+ with :
27+ node-version : 22
28+ - name : Install Dependencies
29+ run : npm ci
30+ - name : Build Quartz
31+ run : npx quartz build
32+ - name : Upload artifact
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : public
36+
37+ deploy :
38+ needs : build
39+ environment :
40+ name : github-pages
41+ url : ${{ steps.deployment.outputs.page_url }}
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : Deploy to GitHub Pages
45+ id : deployment
46+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments