Skip to content

Commit 54cb486

Browse files
committed
update publish
1 parent a8b2ca7 commit 54cb486

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ jobs:
6161
uses: softprops/action-gh-release@v2.1.0
6262
with:
6363
name: ${{ steps.get_version.outputs.version }}
64+
tag_name: ${{ steps.get_version.outputs.version }}
65+
target_commitish: ${{ github.sha }
6466
prerelease: ${{ steps.get_version.outputs.commit_count != '0' }}
6567
files: |
6668
transact/build/libs/*.jar

transact/build.gradle.kts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
import com.vanniktech.maven.publish.DeploymentValidation
2+
13
plugins {
24
id("java")
35
id("java-library")
4-
id("com.vanniktech.maven.publish") version "0.35.0"
6+
id("com.vanniktech.maven.publish") version "0.36.0"
57
}
68

79
tasks.withType<JavaCompile> {
@@ -48,9 +50,13 @@ dependencies {
4850
testImplementation("org.apache.maven:maven-artifact:3.9.12")
4951
}
5052

53+
val projectVersion = project.version.toString()
54+
5155
tasks.processResources {
56+
inputs.property("version", projectVersion)
57+
5258
filesMatching("**/app.properties") {
53-
expand(mapOf("projectVersion" to project.version))
59+
expand(mapOf("projectVersion" to projectVersion))
5460
}
5561
}
5662

@@ -75,7 +81,7 @@ tasks.test {
7581
val publishingToMavenCentral = gradle.startParameter.taskNames.any { it.contains("publishToMavenCentral") }
7682

7783
mavenPublishing {
78-
publishToMavenCentral(automaticRelease = true)
84+
publishToMavenCentral(automaticRelease = true, validateDeployment = DeploymentValidation.NONE)
7985
if (publishingToMavenCentral) {
8086
signAllPublications()
8187
}

0 commit comments

Comments
 (0)