Skip to content

Commit 19f1024

Browse files
committed
Quartz sync: May 17, 2025, 9:57 AM
1 parent 946bebb commit 19f1024

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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

0 commit comments

Comments
 (0)