Skip to content

Commit

Permalink
a bit more tweak of build system for mod publish plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
desht committed Dec 4, 2023
1 parent f0cbfe0 commit d88b7e2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
arguments: announceDiscordBuild
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
# uses: Ilshidur/action-discord@master
# env:
# DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
Expand Down
20 changes: 3 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,13 @@ jobs:
MODMAVEN_PASSWORD: ${{ secrets.MODMAVEN_PASSWORD }}
with:
arguments: publishMavenPublicationToModmavenRepository --no-daemon
- name: Publish to Modrinth
- name: Publish to Curseforge/Modrinth
uses: gradle/gradle-build-action@v2
env:
CHANGELOG: ${{ github.event.release.body }}
MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
BUILD_NUMBER: ${{ github.run_number }}
with:
arguments: modrinth --no-daemon
- name: Publish to Curseforge
uses: gradle/gradle-build-action@v2
env:
CHANGELOG: ${{ github.event.release.body }}
CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }}
BUILD_NUMBER: ${{ github.run_number }}
with:
arguments: curseforge --no-daemon
- name: Discord notification
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
if:
env.DISCORD_WEBHOOK != null
BUILD_NUMBER: ${{ github.run_number }}
with:
args: 'Release ${{ github.event.release.tag_name }} done for project {{ EVENT_PAYLOAD.repository.full_name }} (Minecraft ${{ steps.mod_meta.outputs.mc_version}}): ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}.'
arguments: publishMods --no-daemon
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ publishMods {
version = mod_version
type = getReleaseType(relType)
file = jar.archiveFile
displayName = mod_name
displayName = "${mod_name} ${mod_version} MC-${minecraft_version}"
modLoaders.add("neoforge")

curseforge {
Expand Down

0 comments on commit d88b7e2

Please sign in to comment.