This repository was archived by the owner on May 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Expand file tree Collapse file tree 2 files changed +15
-10
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,11 @@ sudo: false
2
2
language : java
3
3
jdk : oraclejdk7
4
4
5
- after_success :
6
- - ./gradlew asciidoctor
7
- - ./gradle/release-docs.sh
5
+ install : ./gradlew -v
6
+ script : ./gradlew check asciidoctor
7
+ after_success : ./gradle/release-docs.sh
8
+ before_deploy : ./gradlew shadowJar bintrayUpload
8
9
9
- before_deploy :
10
- - ./gradlew shadowJar bintrayUpload
11
10
deploy :
12
11
provider : releases
13
12
api_key :
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -xe
2
- HUB=2.2.0
2
+ HUB=" 2.2.0"
3
+ PR_SOURCE=" build/asciidoc/html5"
3
4
PR_REPO=" gradle-ssh-plugin/gradle-ssh-plugin.github.io"
4
- PR_BRANCH=" ${TRAVIS_BRANCH} -${TRAVIS_BUILD_NUMBER} "
5
+ PR_BRANCH=" travis-${TRAVIS_BUILD_NUMBER} "
6
+ PR_MESSAGE=" Release document"
7
+
8
+ # Release only from master branch
9
+ test " $TRAVIS_BRANCH " = " master"
10
+ test -d " $PR_SOURCE "
5
11
6
12
# Set credential
7
13
mkdir -p " $HOME /.config"
@@ -30,9 +36,9 @@ hub clone "$PR_REPO" _
30
36
cd _
31
37
hub checkout -b " $PR_BRANCH "
32
38
hub rm -r docs
33
- cp -a ../build/asciidoc/html5 docs
39
+ cp -a " ../$PR_SOURCE " docs
34
40
hub add .
35
- hub commit -m " Release from $TRAVIS_BRANCH "
41
+ hub commit -m " $PR_MESSAGE "
36
42
hub push origin " $PR_BRANCH "
37
- hub pull-request -m " Release from $TRAVIS_BRANCH "
43
+ hub pull-request -m " $PR_MESSAGE "
38
44
cd ..
You can’t perform that action at this time.
0 commit comments