forked from FriendlyUser/vuepress-theme-cool-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (39 loc) · 909 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
33
34
35
36
37
38
39
40
41
42
language: node_js
os:
- linux
- osx
# - windows
# windows doesn't work on travis
node_js:
- 14
- 15
install:
- npm install
- npm install --save vuepress
script:
- npx npm run build
cache:
directories:
- "node_modules"
notifications:
email: true
jobs:
include:
- stage: docs release
node_js: "14"
script:
- echo "Deploying to npm ..."
- chmod 700 addAds.sh && ./addAds.sh
- npm install
- npm run docs:build
- cp ads.txt docs/.vuepress/dist || true
deploy:
provider: pages
skip-cleanup: true
local_dir: docs/.vuepress/dist
github-token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
repo: FriendlyUser/vuepress-theme-cool-starter
keep-history: true
target-branch: gh-pages
on:
branch: master