Skip to content

Commit bab3e2d

Browse files
committed
Quartz sync: May 1, 2024, 10:17 PM
1 parent 702880e commit bab3e2d

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)