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