Skip to content

Commit

Permalink
only load github plugin if file is there
Browse files Browse the repository at this point in the history
(cherry picked from commit 46183f5)
  • Loading branch information
BloodWorkXGaming committed Jul 12, 2018
1 parent 92e6f5f commit d3a1883
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ githubRelease {
tasks.githubRelease.dependsOn zipDist

static String getGithubKey(){
Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['GITHUB_TOKEN']
if (new File('secrets.properties').exists()) {

Properties props = new Properties()
props.load(new FileInputStream(new File('secrets.properties')))
return props['GITHUB_TOKEN']
}

return ""
}

task depsize {
Expand Down

0 comments on commit d3a1883

Please sign in to comment.