diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e86c075..93275d7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -120,9 +120,9 @@ jobs: - name: Release if: github.event_name == 'workflow_dispatch' run: | - export PROVIDER_VERSION=${{ inputs.provider-version }} + export PROVIDER_VERSION=${{ inputs.version }} cd hibernate-provider - ./gradlew publishPluginMavenPublicationToOssrhRepository + ./gradlew publishHibernate-providerPublicationToOssrhRepository cd ../gradle-plugin ./gradlew publishPlugins cd ../maven-plugin diff --git a/hibernate-provider/build.gradle.kts b/hibernate-provider/build.gradle.kts index 66fab9d..bdaa1af 100644 --- a/hibernate-provider/build.gradle.kts +++ b/hibernate-provider/build.gradle.kts @@ -50,9 +50,10 @@ publishing { publications { create("hibernate-provider") { signing { - sign(publishing.publications["hibernate-provider"]) + sign(this@create) } pom { + from(components["java"]) name = "hibernate-provider" description = "A Hibernate schema provider for Atlas" url = "https://github.com/ariga/atlas-provider-hibernate" @@ -97,6 +98,11 @@ publishing { } } +tasks.withType().configureEach { + val signingTasks = tasks.withType() + mustRunAfter(signingTasks) +} + tasks.test { useJUnitPlatform() }