From bb04da9abd56d4d2e88a186efd8929c80df47490 Mon Sep 17 00:00:00 2001 From: "Fabi.exe" <66797305+FabiPunktExe@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:50:34 +0100 Subject: [PATCH] Update release.yml, build.gradle --- .github/workflows/release.yml | 6 ++++-- build.gradle | 2 +- example/build.gradle | 11 +++++++---- reload/build.gradle | 11 +++++++---- 4 files changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6b0ee63..81ee881 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,5 +26,7 @@ jobs: env: GH_TOKEN: ${{ github.token }} run: | - directories=("build/libs/*" "reload/build/libs/*"); - for file in "${directories[@]}"; do gh release upload ${{ github.ref_name }} $file; done; + echo ${{ github.ref_name }} > version.txt + gh release upload ${{ github.ref_name }} version.txt + gh release upload ${{ github.ref_name }} build/libs/Spikedog.jar + gh release upload ${{ github.ref_name }} reload/build/libs/reload.jar \ No newline at end of file diff --git a/build.gradle b/build.gradle index 0e911d4..b91571a 100644 --- a/build.gradle +++ b/build.gradle @@ -29,12 +29,12 @@ jar { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } duplicatesStrategy = DuplicatesStrategy.INCLUDE - archivesBaseName = 'Spikedog' manifest { attributes 'Implementation-Title': 'Spikedog', 'Implementation-Version': version, 'Main-Class': 'diruptio.spikedog.Spikedog' } + archiveFileName = 'Spikedog.jar' } application { diff --git a/example/build.gradle b/example/build.gradle index ecea46e..61cff75 100644 --- a/example/build.gradle +++ b/example/build.gradle @@ -6,9 +6,12 @@ dependencies { compileOnly project(':') } -jar.doLast { - copy { - from jar.archiveFile - into rootProject.file('run/modules') +jar { + archiveFileName = 'example.jar' + doLast { + copy { + from jar.archiveFile + into rootProject.file('run/modules') + } } } \ No newline at end of file diff --git a/reload/build.gradle b/reload/build.gradle index ecea46e..5565d69 100644 --- a/reload/build.gradle +++ b/reload/build.gradle @@ -6,9 +6,12 @@ dependencies { compileOnly project(':') } -jar.doLast { - copy { - from jar.archiveFile - into rootProject.file('run/modules') +jar { + archiveFileName = 'reload.jar' + doLast { + copy { + from jar.archiveFile + into rootProject.file('run/modules') + } } } \ No newline at end of file