Skip to content

Commit

Permalink
build(Needs bump): run build task when dummy publication task is exec…
Browse files Browse the repository at this point in the history
…uted

This fixes issues with semantic-release not being able to upload release assets
  • Loading branch information
oSumAtrIX committed Aug 23, 2023
1 parent 1fa3dd7 commit f556909
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ tasks {
expand("projectVersion" to project.version)
}

build {
dependsOn(shadowJar)
}

shadowJar {
manifest {
attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt")
Expand All @@ -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
Expand Down

0 comments on commit f556909

Please sign in to comment.