Skip to content

Commit dbc769a

Browse files
committed
🆕 Config Travis CI deployment
1 parent cf0a7bf commit dbc769a

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.travis.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ cache:
1010

1111
env:
1212
global:
13-
# - BUILD_DOCS=false
13+
- DEPLOY_DOCS=false
1414
- PHPDOC=2
1515

1616
matrix:
1717
fast_finish: false
1818
include:
1919
- php: 7.2
2020
env: PHPDOC=3
21+
- php: 7.2
22+
env: DEPLOY_DOCS=true
2123

2224
allow_failures:
2325
- php: 7.2
@@ -62,3 +64,15 @@ script:
6264
fi
6365
6466
- yarn docs:build
67+
68+
deploy:
69+
provider: pages
70+
skip-cleanup: true
71+
github-token: $GITHUB_TOKEN
72+
keep-history: true
73+
local-dir: dist/phpdoc-vuepress
74+
project-name: "nelson6e65/phpdoc-vuepress [${TRAVIS_COMMIT_RANGE}]"
75+
on:
76+
branch: master
77+
condition: $DEPLOY_DOCS = true
78+
verbose: true

0 commit comments

Comments
 (0)