Skip to content

Commit 5516c0d

Browse files
committed
chore: add github workflow config.
1 parent b574049 commit 5516c0d

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/ci.yml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build & Deploy
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
build-deploy:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/checkout@master
12+
13+
- name: Setup Node
14+
uses: actions/setup-node@v1
15+
with:
16+
node-version: '10.x'
17+
18+
- run: npm install
19+
- run: npm run compile
20+
- run: npm run compile:min
21+
- run: mkdir -p build
22+
- run: cp -r reset.* ./build
23+
24+
- name: Deploy
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./build

0 commit comments

Comments
 (0)