Skip to content

Commit a5bc0c8

Browse files
Create build-pages.yml
1 parent 2d1bd48 commit a5bc0c8

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: cd
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
cd:
7+
runs-on: ${{ matrix.os }}
8+
9+
strategy:
10+
matrix:
11+
os: [ubuntu-latest]
12+
node: [14]
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@master
17+
18+
- name: Setup node env
19+
uses: actions/setup-node@v2.1.2
20+
with:
21+
node-version: ${{ matrix.node }}
22+
23+
- name: Install dependencies
24+
run: npm install
25+
26+
- name: Generate
27+
run: npm run generate
28+
29+
- name: Deploy
30+
uses: peaceiris/actions-gh-pages@v3
31+
with:
32+
github_token: ${{ secrets.GITHUB_TOKEN }}
33+
publish_dir: ./dist

0 commit comments

Comments
 (0)