Skip to content

Commit d45d853

Browse files
committed
Add deploy workflow
1 parent ede58de commit d45d853

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/deploy.yml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Build and Deploy Quartz Site
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v2
15+
16+
- name: Set up Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: "21"
20+
21+
- name: Install dependencies
22+
run: |
23+
cd quartz
24+
npm install
25+
26+
- name: Build site
27+
run: |
28+
cd quartz
29+
npm run build
30+
31+
- name: Deploy to GitHub Pages
32+
uses: JamesIves/github-pages-deploy-action@v4
33+
with:
34+
branch: gh-pages
35+
folder: quartz/public
36+
ssh-key: ${{ secrets.DEPLOY }}

0 commit comments

Comments
 (0)