-
-
Notifications
You must be signed in to change notification settings - Fork 5
36 lines (29 loc) · 893 Bytes
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Publish documentation to GH Pages
on:
push:
branches:
- 'master'
jobs:
gh-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- name: "Cache dependencies"
uses: actions/cache@v2
with:
path: docs/node_modules
key: ${{ runner.os }}build-node-${{ hashFiles('docs/yarn.lock') }}
restore-keys: ${{ runner.os }}-build-node-
- name: "Install documentation dependencies"
run: yarn --cwd docs install --frozen-lockfile
- name: "Build documentation"
run: yarn --cwd docs vuepress build .
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/.vuepress/dist
cname: vue-sliding-pagination.efrane.com