Skip to content

Commit dd6d471

Browse files
committed
implement automatic deployment via Github actions
1 parent 71b6bf3 commit dd6d471

File tree

4 files changed

+30
-304
lines changed

4 files changed

+30
-304
lines changed

.github/workflows/publish.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
node-version: [16.x]
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v1
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: Install Packages
21+
run: npm ci
22+
- name: Build page
23+
run: npm run build
24+
- name: Deploy to gh-pages
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.GITHUB_TOKEN }}
28+
publish_dir: ./build

0 commit comments

Comments
 (0)