Skip to content

Commit a6d6842

Browse files
committed
Ignore linuxX64 publications on mac host
1 parent dd95ea6 commit a6d6842

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gradle/publish.gradle

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ class PublishWithRetryTask extends DefaultTask {
116116

117117
@TaskAction
118118
void exec() {
119-
def isWinHost = System.getProperty("os.name", "unknown").toLowerCase().contains("win")
119+
def isLinuxHost = System.getProperty("os.name", "unknown").toLowerCase().contains("linux")
120120
def attempt = 1
121121
while (attempt <= retryCount) {
122122
try {
123123
publishTasks.forEach { Task task ->
124-
if (!isWinHost || !task.name.contains("LinuxX64")) {
124+
if (!task.name.contains("LinuxX64") || isLinuxHost) {
125125
task.publish()
126126
}
127127
}

0 commit comments

Comments
 (0)