We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92e6f5f commit d3a1883Copy full SHA for d3a1883
build.gradle
@@ -91,9 +91,14 @@ githubRelease {
91
tasks.githubRelease.dependsOn zipDist
92
93
static String getGithubKey(){
94
- Properties props = new Properties()
95
- props.load(new FileInputStream(new File('secrets.properties')))
96
- return props['GITHUB_TOKEN']
+ if (new File('secrets.properties').exists()) {
+
+ Properties props = new Properties()
97
+ props.load(new FileInputStream(new File('secrets.properties')))
98
+ return props['GITHUB_TOKEN']
99
+ }
100
101
+ return ""
102
}
103
104
task depsize {
0 commit comments