From f556909b9ea179eba465831e0db3d317b07e4994 Mon Sep 17 00:00:00 2001 From: oSumAtrIX Date: Wed, 23 Aug 2023 16:28:38 +0200 Subject: [PATCH] build(Needs bump): run build task when dummy publication task is executed This fixes issues with semantic-release not being able to upload release assets --- .github/workflows/release.yml | 2 +- build.gradle.kts | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index afb223c..af8c277 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: - name: Build with Gradle env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: ./gradlew clean --no-daemon + run: ./gradlew build - name: Setup semantic-release run: npm install - name: Release diff --git a/build.gradle.kts b/build.gradle.kts index ec2f544..0542237 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -31,10 +31,6 @@ tasks { expand("projectVersion" to project.version) } - build { - dependsOn(shadowJar) - } - shadowJar { manifest { attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt") @@ -46,6 +42,10 @@ tasks { } } + build { + dependsOn(shadowJar) + } + // Dummy task to fix the Gradle semantic-release plugin. // Remove this if you forked it to support building only. // Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435