Skip to content

Commit cd90418

Browse files
committed
Skip signing artifacts on CI
1 parent b958257 commit cd90418

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
GITHUB_IS_PULL_REQUEST: ${{ github.event_name == 'pull_request' }}
2929
ORG_GRADLE_PROJECT_NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
3030
ORG_GRADLE_PROJECT_NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}
31+
ORG_GRADLE_PROJECT_IS_CI: true
3132

3233
- name: Run coverage
3334
env:

build-scripts/gradle-mvn-push.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ def getRepositoryPassword() {
2323
return hasProperty('NEXUS_PASSWORD') ? NEXUS_PASSWORD : ""
2424
}
2525

26+
def isCI() {
27+
return hasProperty('IS_CI') ? IS_CI == "true" : false
28+
}
29+
2630
java {
2731
withJavadocJar()
2832
withSourcesJar()
@@ -82,7 +86,7 @@ afterEvaluate {
8286
}
8387

8488
signing {
85-
required { isReleaseBuild() }
89+
required { isReleaseBuild() && !isCI() }
8690
sign publishing.publications.release
8791
}
8892
}

0 commit comments

Comments
 (0)