Skip to content

Commit c2b53db

Browse files
add workflow for deploying
1 parent 580ebb6 commit c2b53db

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/pages.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- "*"
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
contents: write
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Check out
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v2
19+
with:
20+
node-version: '20'
21+
22+
- name: Install dependencies
23+
run: cd client && npm install
24+
25+
- name: Generate your content
26+
run: npm run build:client
27+
28+
- name: Publish current workdir (which contains generated content) to GitHub Pages
29+
uses: rayluo/[email protected]
30+
31+
with:
32+
source-directory: ./client/
33+
target-branch: gh-pages

0 commit comments

Comments
 (0)