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

Notify Discord after building & fixed building

This commit is contained in:
Tim203
2023-02-13 22:04:54 +01:00
parent 64b1d9c108
commit d7e35ae035

View File

@@ -23,6 +23,7 @@ jobs:
arguments: build arguments: build
- name: Publish to Maven Repository - name: Publish to Maven Repository
if: ${{ job.status == 'success' }}
uses: gradle/gradle-build-action@v2 uses: gradle/gradle-build-action@v2
env: env:
ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }} ORG_GRADLE_PROJECT_geysermcUsername: ${{ vars.DEPLOY_USER }}
@@ -31,7 +32,7 @@ jobs:
arguments: publish arguments: publish
- name: Publish to Downloads API - name: Publish to Downloads API
if: ${{ github.ref_name == "master" && job.status == "success" }} if: ${{ github.ref_name == 'master' && job.status == 'success' }}
shell: bash shell: bash
run: | run: |
# Save the private key to a file # Save the private key to a file
@@ -49,3 +50,9 @@ jobs:
# Run the build script # 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 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 }}