Skip to content

Commit

Permalink
gradle build update
Browse files Browse the repository at this point in the history
  • Loading branch information
nthxny committed Jan 26, 2024
1 parent ff1d56a commit b00f7f3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 62 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/build-multiver.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,6 @@ on:
types: [created]

jobs:
webhook-message:
runs-on: ubuntu-latest
steps:
- name: Get branch name
id: get_branch
run: echo "branch=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT

- name: send building message to discord
if: "!startsWith(github.event.head_commit.message, '[skip]')"
uses: realRobotix/action-discord-notifier@release-master
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message-title: Building mod from branch ${{ steps.get_branch.outputs.branch }}

- name: send not building message to discord
if: "startsWith(github.event.head_commit.message, '[skip]')"
uses: realRobotix/action-discord-notifier@release-master
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
message-title: Build skipped for branch ${{ steps.get_branch.outputs.branch }}


build_1_19:
if: "!startsWith(github.event.head_commit.message, '[skip]')"
strategy:
Expand Down Expand Up @@ -57,25 +35,6 @@ jobs:
- name: gradle murders github servers
run: ./gradlew assemble -PmcVer="1.19.2"

- name: upload forge build artifacts
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-forge-1.19.2
path: forge/build/libs/*.jar

- name: upload fabric build artifacts
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-fabric-1.19.2
path: fabric/build/libs/*.jar

- name: upload merged build artifact to github
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-merged-1.19.2
path: |
build/libs/merged/*.jar
- name: Publish Fabric
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down Expand Up @@ -139,25 +98,6 @@ jobs:
- name: gradle murders github servers
run: ./gradlew assemble -PmcVer="1.20.1"

- name: upload forge build artifacts
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-forge-1.20.1
path: forge/build/libs/*.jar

- name: upload fabric build artifacts
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-fabric-1.20.1
path: fabric/build/libs/*.jar

- name: upload merged build artifact to github
uses: actions/upload-artifact@v3
with:
name: logic_n_control-artifacts-merged-1.20.1
path: |
build/libs/merged/*.jar
- name: Publish Fabric
env:
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
Expand Down
2 changes: 0 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,6 @@ subprojects {
expand properties
}
}

remapJar.finalizedBy(mergeJars)
}

allprojects {
Expand Down
1 change: 1 addition & 0 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ publishMods {
type = STABLE
displayName = "$display_name $mod_version Forge $minecraft_version"
modLoaders.add("fabric")
changelog = "View changelog at https://github.com/anthxnymc/$modid"

curseforge {
projectId = curseforge_id
Expand Down
1 change: 1 addition & 0 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ publishMods {
type = STABLE
displayName = "$display_name $mod_version Forge $minecraft_version"
modLoaders.add("forge")
changelog = "View changelog at https://github.com/anthxnymc/$modid"

curseforge {
projectId = curseforge_id
Expand Down

0 comments on commit b00f7f3

Please sign in to comment.