Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TexBlock committed Nov 29, 2023
1 parent b60fb14 commit 3767c64
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: |
chmod +x gradlew
./gradlew build
- name: Upload artifacts (fabric)
uses: actions/upload-artifact@v3
with:
Expand All @@ -36,3 +37,9 @@ jobs:
with:
name: forge
path: ${{ github.workspace }}/forge/build/libs

- name: Upload artifacts (Forgix merged jar)
uses: actions/upload-artifact@v3
with:
name: merged
path: ${{ github.workspace }}/build/libs/forgix
17 changes: 17 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
plugins {
id "architectury-plugin" version "3.4-SNAPSHOT"
id "io.github.pacifistmc.forgix" version "1.2.6"
id "dev.architectury.loom" version "1.3-SNAPSHOT" apply false
}

Expand Down Expand Up @@ -42,3 +43,19 @@ allprojects {
withSourcesJar()
}
}

forgix {
group = rootProject.maven_group
mergedJarName = "${rootProject.archives_base_name}-${project.version}.jar"
outputDir = "build/libs/forgix"

forge {
projectName = "forge"
jarLocation = "build/libs/${rootProject.archives_base_name}-forge-${ rootProject.version }.jar"
}

fabric {
projectName = "fabric"
jarLocation = "build/libs/${rootProject.archives_base_name}-fabric-${ rootProject.version }.jar"
}
}

0 comments on commit 3767c64

Please sign in to comment.