Skip to content

Commit

Permalink
build: update CI to publish for MC 1.21
Browse files Browse the repository at this point in the history
  • Loading branch information
WiIIiam278 committed Jun 24, 2024
1 parent 332739d commit dac1b9f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 26 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ jobs:
1.20.4
1.20.5
1.20.6
1.21
java: 17
- name: 'Sponge: Publish to Modrinth 🧽'
uses: WiIIiam278/mc-publish@hangar
Expand Down Expand Up @@ -122,22 +123,13 @@ jobs:
plan | suggests | *
impactor | suggests | *
placeholder-api | suggests | *
files-primary: target/HuskHomes-Fabric-${{ env.version_name }}.jar
files-primary: target/HuskHomes-Fabric-${{ env.version_name }}+mc.1.21.jar
name: HuskHomes (Fabric) v${{ env.version_name }}
version: ${{ env.version_name }}
version-type: alpha
changelog: ${{ github.event.head_commit.message }}
loaders: |
fabric
game-versions: |
1.20.6
java: 17
- name: 'Upload GitHub Artifacts 📦'
uses: actions/upload-artifact@v4
if: success() || failure()
with:
name: HuskHomes
path: |
target/HuskHomes-Paper-${{ env.version_name }}.jar
target/HuskHomes-Sponge-${{ env.version_name }}.jar
target/HuskHomes-Fabric-${{ env.version_name }}.jar
1.21
java: 17
15 changes: 4 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ jobs:
1.20.4
1.20.5
1.20.6
1.21
java: 17
- name: 'Sponge: Publish to Modrinth 🧽'
uses: WiIIiam278/mc-publish@hangar
Expand Down Expand Up @@ -108,21 +109,13 @@ jobs:
plan | suggests | *
impactor | suggests | *
placeholder-api | suggests | *
files-primary: target/HuskHomes-Fabric-${{ github.event.release.tag_name }}.jar
files-primary: target/HuskHomes-Fabric-${{ github.event.release.tag_name }}+mc.1.21.jar
name: HuskHomes (Fabric) v${{ github.event.release.tag_name }}
version: ${{ github.event.release.tag_name }}
version-type: release
changelog: ${{ github.event.release.body }}
loaders: |
fabric
game-versions: |
1.20.6
java: 17
- name: 'Upload GitHub Artifacts 📦'
uses: actions/upload-artifact@v4
with:
name: HuskHomes
path: |
target/HuskHomes-Paper-${{ github.event.release.tag_name }}.jar
target/HuskHomes-Sponge-${{ github.event.release.tag_name }}.jar
target/HuskHomes-Fabric-${{ github.event.release.tag_name }}.jar
1.21
java: 17
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -119,14 +119,16 @@ allprojects {
}

subprojects {
version rootProject.version
archivesBaseName = "${rootProject.name}-${project.name.capitalize()}"

// Fabric-specific configuration
if (['fabric'].contains(project.name)) {
apply plugin: 'fabric-loom'
compileJava.options.release.set 21
version += "+mc.${fabric_minecraft_version}"
}

version rootProject.version
archivesBaseName = "${rootProject.name}-${project.name.capitalize()}"

jar {
from '../LICENSE'
}
Expand Down

0 comments on commit dac1b9f

Please sign in to comment.