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