-
Notifications
You must be signed in to change notification settings - Fork 12
40 lines (34 loc) · 1.04 KB
/
main.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
37
38
39
40
name: github pages
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- name: Setup Node.js environment
uses: actions/[email protected]
with:
# Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0
node-version: '16.x'
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: git pull --recurse-submodules
- run: git submodule update --init --remote
- run: export VUE_APP_API_LOGIN_ENABLED=false
- run: export DOCS_BASE=/cass-editor/docs/
- run: npm ci
- run: npm run docs:build
- run: npm run build
- name: deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist