Skip to content

Commit

Permalink
Update release.yml, build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
FabiPunktExe committed Mar 18, 2024
1 parent fa5d426 commit bb04da9
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
11 changes: 7 additions & 4 deletions example/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}
11 changes: 7 additions & 4 deletions reload/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
}
}

0 comments on commit bb04da9

Please sign in to comment.