From a87d6f8ef99245bd09ba3937f689a703334d68d2 Mon Sep 17 00:00:00 2001 From: Pavel Kunyavskiy Date: Sat, 24 Feb 2024 17:28:45 +0100 Subject: [PATCH] Fix a lib publication version --- .github/workflows/release-lib.yml | 13 +------------ build.gradle.kts | 1 + 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release-lib.yml b/.github/workflows/release-lib.yml index 241262e2a..7ce7b8a2d 100644 --- a/.github/workflows/release-lib.yml +++ b/.github/workflows/release-lib.yml @@ -6,17 +6,6 @@ on: version: description: Name of release required: true - publish: - type: boolean - description: Would release be published - required: true - default: true - draft: - type: boolean - description: Publish draft first - required: true - default: true - env: REGISTRY: ghcr.io IMAGE_NAME: ${{ github.repository }}-instance @@ -41,7 +30,7 @@ jobs: uses: gradle/actions/setup-gradle@v3 - name: Publish package - run: ./gradlew publish + run: ./gradlew publish --scan -Pnpm.download=false -Pbuild_version=${{ github.event.inputs.version }} -i env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build.gradle.kts b/build.gradle.kts index e613a9eb0..1759b554c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -64,6 +64,7 @@ subprojects { } from(components["java"]) groupId = "org.icpclive" + version = rootProject.findProperty("build_version")!!.toString() artifactId = when (val name = this@subprojects.name){ "plugins" -> "org.icpclive.cds.full" else -> "org.icpclive.cds.$name"