1
0
mirror of https://github.com/GeyserMC/Rainbow.git synced 2025-12-19 14:59:16 +00:00

re-add discord webhook

This commit is contained in:
onebeastchris
2025-07-18 12:19:30 +02:00
parent d0c12483f9
commit 42b8d115af

View File

@@ -38,10 +38,10 @@ jobs:
if: success()
with:
artifacts: |
build/libs/rainbow-*.jar
rainbow:build/libs/rainbow-*.jar
- name: Publish to Maven Repository
if: ${{ success() && github.repository == 'GeyserMC/rainbow' && github.ref_name == 'master' }}
if: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }}
run: ./gradlew publish
env:
BUILD_NUMBER: ${{ steps.release-info.outputs.curentRelease }}
@@ -49,14 +49,14 @@ jobs:
ORG_GRADLE_PROJECT_geysermcPassword: ${{ secrets.DEPLOY_PASS }}
- name: Get Version
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/rainbow' }}
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
id: get-version
run: |
version=$(grep -o "mod_version=[0-9\\.]*" gradle.properties | cut -d"=" -f2 | cut -d"-" -f1)
echo "VERSION=${version}" >> $GITHUB_OUTPUT
- name: Get Release Metadata
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/rainbow' }}
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
uses: GeyserMC/actions/release@master
id: metadata
with:
@@ -70,7 +70,7 @@ jobs:
releaseVersion: ${{ steps.get-version.outputs.VERSION }}
- name: Publish to Downloads API
if: ${{ success() && github.repository == 'GeyserMC/rainbow' && github.ref_name == 'master' }}
if: ${{ success() && github.repository == 'GeyserMC/Rainbow' && github.ref_name == 'master' }}
uses: GeyserMC/actions/upload-release@master
with:
username: ${{ vars.DOWNLOADS_USERNAME }}
@@ -88,11 +88,11 @@ jobs:
# MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }}
# run: ./gradlew modrinth
# - name: Notify Discord
# if: ${{ (success() || failure()) && github.repository == 'GeyserMC/rainbow' }}
# uses: GeyserMC/actions/notify-discord@master
# with:
# discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
# status: ${{ job.status }}
# body: ${{ steps.metadata.outputs.body }}
# includeDownloads: ${{ github.ref_name == 'master' }}
- name: Notify Discord
if: ${{ (success() || failure()) && github.repository == 'GeyserMC/Rainbow' }}
uses: GeyserMC/actions/notify-discord@master
with:
discordWebhook: ${{ secrets.DISCORD_WEBHOOK }}
status: ${{ job.status }}
body: ${{ steps.metadata.outputs.body }}
includeDownloads: ${{ github.ref_name == 'master' }}