There was an error while loading. Please reload this page.
1 parent 64ca271 commit 2841af1Copy full SHA for 2841af1
1 file changed
.github/workflows/deploy.yml
@@ -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
33
+ run: npx quartz build
34
35
+ - name: Deploy to GitHub Pages
36
+ uses: peaceiris/actions-gh-pages@v3
37
38
+ github_token: ${{ secrets.GITHUB_TOKEN }}
39
+ publish_dir: src/public
0 commit comments