From d7e35ae0359df0e53ee52883a2fb086d1f12bcc3 Mon Sep 17 00:00:00 2001 From: Tim203 Date: Mon, 13 Feb 2023 22:04:54 +0100 Subject: [PATCH] Notify Discord after building & fixed building --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5dda57f6..40edc4fd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,6 +23,7 @@ jobs: arguments: build - name: Publish to Maven Repository + if: ${{ job.status == 'success' }} uses: gradle/gradle-build-action@v2 env: ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }} @@ -31,7 +32,7 @@ jobs: arguments: publish - name: Publish to Downloads API - if: ${{ github.ref_name == "master" && job.status == "success" }} + if: ${{ github.ref_name == 'master' && job.status == 'success' }} shell: bash run: | # Save the private key to a file @@ -49,3 +50,9 @@ jobs: # Run the build script ssh -o StrictHostKeyChecking=no -i id_ecdsa $DOWNLOADS_USERNAME@$DOWNLOADS_SERVER_IP ./handleBuild.sh floodgate $version $GITHUB_RUN_ID $GITHUB_SHA + + - name: Notify Discord + uses: Tim203/actions-git-discord-webhook@main + with: + webhook_url: ${{ secrets.DISCORD_WEBHOOK }} + status: ${{ job.status }}