Skip to content
This repository was archived by the owner on Jun 29, 2022. It is now read-only.

Commit eb368b2

Browse files
committed
www: add gh-pages build & publish workflow
1 parent d091f19 commit eb368b2

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/main.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: gh-pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
with:
17+
fetch-depth: 1
18+
19+
- name: Build with Node.js
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: '12.x'
23+
- run: npm install
24+
- run: npm run build
25+
26+
- name: GitHub Pages action
27+
uses: peaceiris/[email protected]
28+
env:
29+
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
30+
PUBLISH_BRANCH: gh-pages
31+
PUBLISH_DIR: ./html/.vuepress/dist/

0 commit comments

Comments
 (0)