Skip to content

Commit 1e8086d

Browse files
authored
Create main.yml
1 parent 745f8e9 commit 1e8086d

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: github pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-18.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions/setup-node@v2
15+
with:
16+
node-version: '14'
17+
- name: Install dependencies
18+
run: npm ci
19+
- name: Delete temporary directories
20+
run: npm run clean
21+
- name: Build production website
22+
run: npm run build
23+
- name: Deploy to GitHub Pages
24+
uses: peaceiris/actions-gh-pages@v3
25+
with:
26+
github_token: ${{ secrets.GT_TOKEN }}
27+
publish_dir: ./public

0 commit comments

Comments
 (0)