Skip to content
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

release: fix CD - wrong version and missing files from the jar #28

Merged
merged 3 commits into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
}