构建文件用于自动化集成
This commit is contained in:
parent
f191fd47ae
commit
7c920fa887
|
@ -0,0 +1,40 @@
|
|||
language: java
|
||||
install: true
|
||||
|
||||
jdk:
|
||||
- openjdk8
|
||||
|
||||
os:
|
||||
- linux
|
||||
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.gradle
|
||||
|
||||
before_install:
|
||||
- chmod +x gradlew
|
||||
|
||||
|
||||
before_script:
|
||||
- git fetch
|
||||
- git checkout -b gh-pages
|
||||
- git merge origin/master
|
||||
- git rm --cached --ignore-unmatch index.html
|
||||
|
||||
script:
|
||||
- ./gradlew asciidoctor
|
||||
|
||||
|
||||
deploy:
|
||||
provider: s3
|
||||
access_key_id: "$AWS_ACCESS_KEY"
|
||||
secret_access_key: "$AWS_SECRET_KEY"
|
||||
region: us-east-2
|
||||
bucket: "com.ossez.docs"
|
||||
skip_cleanup: true
|
||||
local_dir: build/asciidoc/html5
|
||||
upload-dir: messagepack-docs
|
Loading…
Reference in New Issue