Skip to content

Commit 4740f0f

Browse files
committed
add a gh action to auto-deploy
1 parent 2c3f1f8 commit 4740f0f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Diff for: .github/workflows/deploy.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
permissions:
7+
contents: write
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
- name: Setup Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '16'
19+
cache: 'npm'
20+
- name: Install Dependencies
21+
run: npm ci
22+
- name: Build
23+
run: npm run build
24+
- name: Deploy to GitHub Pages
25+
env:
26+
CI: true
27+
run: npm run deploy
28+

0 commit comments

Comments
 (0)