-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature: Publish to OSSRH / MavenCentral #47
Conversation
Closes: eclipse-kuksa#46 Signed-off-by: Andre Weber <andre.weber3@etas.com>
ORG_GPG_PASSPHRASE: ${{ secrets.ORG_GPG_PASSPHRASE }} | ||
ORG_GPG_PRIVATE_KEY: ${{ secrets.ORG_GPG_PRIVATE_KEY }} | ||
ORG_OSSRH_PASSWORD: ${{ secrets.ORG_OSSRH_PASSWORD }} | ||
ORG_OSSRH_USERNAME: ${{ secrets.ORG_OSSRH_USERNAME }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I have no clue, what happens with our fork once this branch is merged.
Since we don't have these secrets in the Bosch Global Organisation the workflow might start failing when this workflow is executed "locally" on our Bosch Global fork?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Due to this, it's also quite hard to test this in any other way than simply merging it and checking if it succeeds?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Skipping deployment now when enot in eclipse-kuksa orga as described here: https://docs.github.com/en/actions/using-jobs/using-conditions-to-control-job-execution#example-only-run-job-for-specific-repository
} | ||
} | ||
|
||
gradle.taskGraph.whenReady { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we rewrite this more like this so it does not loop through all the tasks even if it already found the correct task?
Maybe also add some println for information that the signing is disabled here :)
gradle.taskGraph.whenReady {
tasks.withType(Sign::class) {
val publishToMavenLocalTask = allTasks.find { "publishToMavenLocal" in it.name }
var isPublishingToMavenLocal = publishToMavenLocalTask != null
onlyIf { !isPublishingToMavenLocal }
}
}
Closes: #46