Skip to content

Commit 4074889

Browse files
committed
Automatically publish documentation to gh pages when something is changed on master branch.
1 parent b3f7ee1 commit 4074889

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.travis.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ script:
88
- "./gradlew clean check"
99
after_success:
1010
- test $TRAVIS_BRANCH = "master" && ./gradlew artifactoryPublish -PbintrayUsername="${BINTRAY_USER}" -PbintrayApiKey="${BINTRAY_KEY}"
11-
- test $TRAVIS_BRANCH = "master" && ./gradlew publishGhPages
11+
- test $TRAVIS_BRANCH = "master" && ./gradlew asciidoctor
1212
before_cache:
1313
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
1414
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
15+
deploy:
16+
provider: pages
17+
skip_cleanup: true
18+
github_token: $GITHUB_TOKEN # Set in the settings page of your repository, as a secure variable
19+
keep_history: true
20+
local_dir: resilience4j-documentation/build/asciidoc/html5
21+
on:
22+
branch: master
1523
#cache:
1624
# directories:
1725
# - "$HOME/.gradle/caches/"

0 commit comments

Comments
 (0)