Fix GitHub publish in pull request

This commit is contained in:
Alexander Xia committed 2020-03-29 22:57:28 +08:00
1 parent c5460624e3
commit a714670b9a
3 files changed
+11 -2

No files matched your search

+4 -1
View File
@@ -125,4 +125,7 @@ publishing {
from(components.java)
}
}
}
}
tasks.withType(PublishToMavenRepository) {
onlyIf { System.getenv("GITHUB_TOKEN") != null }
}
+3
View File
@@ -137,3 +137,6 @@ publishing {
}
}
}
tasks.withType(PublishToMavenRepository) {
onlyIf { System.getenv("GITHUB_TOKEN") != null }
}
+4 -1
View File
@@ -133,4 +133,7 @@ publishing {
from(components.java)
}
}
}
}
tasks.withType(PublishToMavenRepository) {
onlyIf { System.getenv("GITHUB_TOKEN") != null }
}