Skip to content

Commit 2841af1

Browse files
feat: add deploy workflow
1 parent 64ca271 commit 2841af1

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build & Deploy Site
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
14+
defaults:
15+
run:
16+
working-directory: .
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version: "22"
26+
27+
- name: Install dependencies
28+
working-directory: src/quartz
29+
run: npm ci
30+
31+
- name: Build Quartz
32+
working-directory: src/quartz
33+
run: npx quartz build
34+
35+
- name: Deploy to GitHub Pages
36+
uses: peaceiris/actions-gh-pages@v3
37+
with:
38+
github_token: ${{ secrets.GITHUB_TOKEN }}
39+
publish_dir: src/public

0 commit comments

Comments
 (0)