Skip to content

Commit

Permalink
fix forgix
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGoosik committed Jul 8, 2024
1 parent c248414 commit 0e899f6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
name: Artifacts
path: |
Merged/${{ steps.props.outputs.mod_id }}-${{ steps.props.outputs.mod_version }}.jar
build/libs/merged/${{ steps.props.outputs.mod_id }}-${{ steps.props.outputs.mod_version }}.jar
${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ steps.props.outputs.mod_version }}.jar
${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ steps.props.outputs.mod_version }}-sources.jar
${{ steps.props.outputs.mod_id }}-neoforge/build/libs/${{ steps.props.outputs.mod_id }}-neoforge-${{ steps.props.outputs.mod_version }}.jar
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

files: |
Merged/${{ steps.props.outputs.mod_id }}-${{ github.event.release.tag_name }}.jar
build/libs/merged/${{ steps.props.outputs.mod_id }}-${{ github.event.release.tag_name }}.jar
name: ${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}

Expand All @@ -54,7 +54,7 @@ jobs:
game-versions: ${{ steps.props.outputs.minecraft_version_range_fabric }}
game-version-filter: releases

dependencies: |
cloth-config
Expand All @@ -63,9 +63,9 @@ jobs:
retry-attempts: 0
fail-mode: skip

- name: Upload assets to GitHub
uses: AButler/[email protected]
with:
files: "Merged/${{ steps.props.outputs.mod_id }}-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ github.event.release.tag_name }}-sources.jar;${{ steps.props.outputs.mod_id }}-neoforge/build/libs/${{ steps.props.outputs.mod_id }}-neoforge-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-neoforge/build/libs/${{ steps.props.outputs.mod_id }}-neoforge-${{ github.event.release.tag_name }}-sources.jar"
files: "build/libs/merged/${{ steps.props.outputs.mod_id }}-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-fabric/build/libs/${{ steps.props.outputs.mod_id }}-fabric-${{ github.event.release.tag_name }}-sources.jar;${{ steps.props.outputs.mod_id }}-neoforge/build/libs/${{ steps.props.outputs.mod_id }}-neoforge-${{ github.event.release.tag_name }}.jar;${{ steps.props.outputs.mod_id }}-neoforge/build/libs/${{ steps.props.outputs.mod_id }}-neoforge-${{ github.event.release.tag_name }}-sources.jar"
repo-token: ${{ secrets.GH_TOKEN }}
15 changes: 15 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import groovy.lang.Closure
import io.github.pacifistmc.forgix.plugin.ForgixMergeExtension
import net.fabricmc.loom.api.LoomGradleExtensionAPI

plugins {
Expand All @@ -11,9 +13,22 @@ architectury {
minecraft = rootProject.property("minecraft_version").toString()
}

@Suppress("UNCHECKED_CAST")
forgix {
group = "ru.pinkgoosik.winterly"
mergedJarName = "winterly-${rootProject.property("mod_version").toString()}.jar"
outputDir = "build/libs/merged"

fabric(
closureOf<ForgixMergeExtension.FabricContainer> {
projectName = "winterly-fabric"
} as Closure<ForgixMergeExtension.FabricContainer>
)
neoforge(
closureOf<ForgixMergeExtension.NeoForgeContainer> {
projectName = "winterly-neoforge"
} as Closure<ForgixMergeExtension.NeoForgeContainer>
)
}

subprojects {
Expand Down

0 comments on commit 0e899f6

Please sign in to comment.