From 7fedeae3e3d72613658bfc8a9b9fc5cd065d3380 Mon Sep 17 00:00:00 2001 From: Dario Date: Fri, 7 Jun 2024 23:48:20 +0200 Subject: [PATCH] fix workflow trigger and release job --- .github/workflows/sync.yml | 4 ++++ build.gradle.kts | 12 +++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index edb7bd0..113aa4b 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -4,6 +4,10 @@ on: push: branches: - main + workflow_run: + workflows: [ "update-readme" ] + types: + - completed concurrency: group: wiki diff --git a/build.gradle.kts b/build.gradle.kts index 1235528..5f27e7b 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -13,7 +13,7 @@ subprojects { apply(plugin = "maven-publish") group = "de.derioo.javautils" - version = "2.3.0" + version = "2.3.1" repositories { mavenCentral() @@ -66,8 +66,8 @@ subprojects { register("gpr") { groupId = "$group" version = "$version" - artifact(tasks["shadowJar"]) - artifact(tasks["sourcesJar"]) + artifact(tasks.named("shadowJar").get()) + artifact(tasks.named("sourcesJar").get()) } } } @@ -75,6 +75,8 @@ subprojects { tasks.test { useJUnitPlatform() } -} - + tasks.named("publishGprPublicationToReposiliteRepository") { + dependsOn(tasks.named("jar")) + } +}