forked from fenixsoft/awesome-fenix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
32 lines (32 loc) · 846 Bytes
/
.travis.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
language: node_js
node_js:
- lts/*
before_install:
- export TZ='Asia/Shanghai'
install:
- npm install
script:
- npm run build
- echo "icyfenix.cn" >> .vuepress/dist/CNAME
# 以下为编译PDF,耗时较长,可以考虑注释掉,手工触发
- echo "Starting to Export PDF..."
- sudo apt-get update
- sudo apt-get -y install xfonts-utils fonts-droid-fallback xfonts-intl-asian
- sudo cp .vuepress/font/*.* /usr/share/fonts/truetype/
- sudo mkfontscale && mkfontdir && fc-cache
- npm run export
deploy:
- provider: pages
skip_cleanup: true
local_dir: .vuepress/dist
github_token: $gh_token
keep_history: true
target-branch: gh-pages
on:
branch: master
- provider: script
keep_history: true
skip_cleanup: true
script: npm run deoply:refresh-cdn
on:
branch: master