Skip to content

Commit

Permalink
releasing to github through gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
albertlatacz committed Dec 2, 2016
1 parent a72a793 commit fd15ad4
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ env:
global:
- PROJECT_REPOSITORY="albertlatacz/java-repl"
- PROJECT_VERSION=$TRAVIS_BUILD_NUMBER
- secure: "GgktdD6R+usYtITrqJcpcgU0MjwZXI0kcL1MVwqJVH7+6dAxt2i4ddHj62lT2zjPah1EqL/OXVw3WrhI3kDgljSuG4kcFsTj/ZBDpzhFtFL6aF5SR49tHUykL5nSaIp53TVnHFnk5CuRUUVxAnlUxNLWDCNyYfD3GB2vxJnicMs="
- secure: "bIFU+VgbcIJ5DmsXkoxTaLGI40uIyWdTFnco7FaJLoJLwLJSake4jemFv5SI\nJaSFVINBXA+Xn/qqHmFfWVr2fKsAevwRfkkIuTM1QMlN2TOMkCwOrz6mYA3f\nxjh+oKXUzNutZTHSyoCyZ72uHSJ33TlPWHU+OToS4AYxf8LrTYI="
- secure: "O0xTkW+WBNWT0a44u7XRpm0vp0q04ZFv/ovmPX6nm3fRokuiHMoRaL1l7r1K\nLF9ow3n+Ncsl64XRJNv2rjKVrxb19GtZQjxnHqi6bW2FSnoTEJsfvIjgMOwh\nrOHL9MUP61idRqN15ki0qYsmZ8t3xN9rw04fJLGZn73Oy0uRSGI="
- secure: "C5j0sZWXhfOoaVYyylyM7aJsjUSBbiIkW2GpAhODIrp/E5l297TymomFOCOTZSL1xF5V4RYt6jc7db+Qri5ryeHd0IIYMNWqcmni4rChtKp4b2F4qh+eqwre8RW5hONOcByZTQDvo+m3SCTuoTWcIM/UIhQIGovSPtYmqjQlSwI="
Expand All @@ -26,25 +27,25 @@ services:
- docker

script:
- gradle clean check shadowJar bintrayUpload
- gradle clean check shadowJar bintrayUpload githubRelease

deploy:
provider: releases
api_key:
secure: "Dlvp//L9a/9bHgtTZPWy+tTbsokq5f3fhobmR1tBtEQUiuOl0dl5nzVOq1tBb0AwPBmTudkBIwH1DW64WCnZnGUatiVznfEydGgCzaW8hNeg9S2iatNIjVjqWXrR/Id+Vg8gGoDomLltPL5qb5UBhdpiOT9Te/GH5/hRUw0NpvI="
file: "build/libs/*.jar"
file_glob: true
skip_cleanup: true
on:
branch: master
repo: $PROJECT_REPOSITORY
#deploy:
# provider: releases
# api_key:
# secure: "Dlvp//L9a/9bHgtTZPWy+tTbsokq5f3fhobmR1tBtEQUiuOl0dl5nzVOq1tBb0AwPBmTudkBIwH1DW64WCnZnGUatiVznfEydGgCzaW8hNeg9S2iatNIjVjqWXrR/Id+Vg8gGoDomLltPL5qb5UBhdpiOT9Te/GH5/hRUw0NpvI="
# file: "build/libs/*.jar"
# file_glob: true
# skip_cleanup: true
# on:
# branch: master
# repo: $PROJECT_REPOSITORY


after_deploy:
after_success:
- sh bin/push-to-docker-hub.sh

after_success:
- sh bin/set-tags.sh
#after_success:
# - sh bin/set-tags.sh



14 changes: 14 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
plugins {
id "com.github.johnrengelman.shadow" version "1.2.4"
id "com.jfrog.bintray" version "1.7"
id "co.riiid.gradle" version "0.4.2"
}

apply plugin: 'java'
Expand Down Expand Up @@ -50,6 +51,19 @@ publishing {
}
}

github {
owner = 'albertlatacz'
repo = 'java-repl'
token = System.getenv('GITHUB_TOKEN')
tagName = projectVersion
targetCommitish = 'master'
assets = [
"build/libs/javarepl-${projectVersion}.jar",
"build/libs/javarepl-${projectVersion}-sources.jar",
"build/libs/javarepl-${projectVersion}-javadoc.jar"
]
}


bintray {
user = System.getenv("BINTRAY_USERNAME")
Expand Down

0 comments on commit fd15ad4

Please sign in to comment.