Skip to content

Commit

Permalink
Use shared output directory for mod JARs
Browse files Browse the repository at this point in the history
  • Loading branch information
jellysquid3 committed Oct 26, 2024
1 parent ee590a1 commit 180361a
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: sodium-artifacts-${{ steps.ref.outputs.branch }}
path: build/libs/*.jar
path: build/mods/*.jar
2 changes: 1 addition & 1 deletion .github/workflows/build-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: sodium-artifacts-${{ steps.ref.outputs.branch }}
path: build/libs/*.jar
path: build/mods/*.jar
3 changes: 1 addition & 2 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,5 @@ jobs:
- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
# Filter built files to disregard -sources and -dev, and leave only the minecraft-compatible jars.
files: 'build/libs/*[0-9].jar;LICENSE'
files: 'build/mods/*.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/build-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: sodium-artifacts-${{ steps.ref.outputs.branch }}
path: build/libs/*.jar
path: build/mods/*.jar
4 changes: 4 additions & 0 deletions fabric/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ tasks {
from(configurationCommonModJava)
}

remapJar {
destinationDirectory.set(file(rootProject.layout.buildDirectory).resolve("mods"))
}

processResources {
from(configurationCommonModResources)
}
Expand Down
1 change: 1 addition & 0 deletions neoforge/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ neoForge {
tasks {
jar {
from(configurationCommonModJava)
destinationDirectory.set(file(rootProject.layout.buildDirectory).resolve("mods"))
}

processResources {
Expand Down

0 comments on commit 180361a

Please sign in to comment.