Skip to content

Commit ac023db

Browse files
authored
Create deploy
1 parent 61036fe commit ac023db

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/deploy

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: '16'
19+
20+
- name: Install dependencies
21+
run: npm i
22+
23+
- name: Build
24+
run: npm run build:pages
25+
26+
- name: Deploy
27+
if: success()
28+
uses: peaceiris/actions-gh-pages@v3
29+
with:
30+
github_token: ${{ secrets.GITHUB_TOKEN }}
31+
publish_dir: ./dist
32+
enable_jekyll: true

0 commit comments

Comments
 (0)