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
This commit is contained in:
oSumAtrIX 2023-08-23 16:28:38 +02:00
parent 1fa3dd7b8c
commit f556909b9e
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
2 changed files with 5 additions and 5 deletions

View File

@ -36,7 +36,7 @@ jobs:
- name: Build with Gradle - name: Build with Gradle
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew clean --no-daemon run: ./gradlew build
- name: Setup semantic-release - name: Setup semantic-release
run: npm install run: npm install
- name: Release - name: Release

View File

@ -31,10 +31,6 @@ tasks {
expand("projectVersion" to project.version) expand("projectVersion" to project.version)
} }
build {
dependsOn(shadowJar)
}
shadowJar { shadowJar {
manifest { manifest {
attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt") 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. // Dummy task to fix the Gradle semantic-release plugin.
// Remove this if you forked it to support building only. // Remove this if you forked it to support building only.
// Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435 // Tracking issue: https://github.com/KengoTODA/gradle-semantic-release-plugin/issues/435