Skip to content

Commit

Permalink
release: fix CD - wrong version and missing files from the jar (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
dorav authored Dec 13, 2023
1 parent 6c7e0ef commit 2e569d4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion hibernate-provider/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ publishing {
publications {
create<MavenPublication>("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"
Expand Down Expand Up @@ -97,6 +98,11 @@ publishing {
}
}

tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

tasks.test {
useJUnitPlatform()
}

0 comments on commit 2e569d4

Please sign in to comment.