Skip to content

Commit cc123ff

Browse files
committed
Use project.githubApiKey in githubPages only if it is defined
1 parent 0ee3d21 commit cc123ff

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

gradle/github-pages-defaults.gradle

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,11 @@ githubPages {
5252

5353
repoUri "https://github.com/${rootProject.githubUser}/${rootProject.name}.git"
5454

55-
credentials {
56-
username = githubApiKey
57-
password = ''
55+
if (project.hasProperty('githubApiKey')) {
56+
credentials {
57+
username = githubApiKey
58+
password = ''
59+
}
5860
}
5961
}
6062

0 commit comments

Comments
 (0)