Skip to content

Commit c61e502

Browse files
committed
Add deploy action
1 parent e9965cb commit c61e502

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Deploy
2+
on:
3+
push:
4+
branches:
5+
- build
6+
jobs:
7+
deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup node
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: '14.x'
15+
- name: Install dependencies
16+
run: npm ci
17+
- name: Build site
18+
run: npm run build
19+
- name: Deploy
20+
uses: peaceiris/actions-gh-pages@v3
21+
with:
22+
github_token: ${{ secrets.GITHUB_TOKEN }}
23+
publish_branch: master
24+
publish_dir: ./dist

0 commit comments

Comments
 (0)