Update build.yml

Enable discord notification upon build
This commit is contained in:
Collin Kidder
2021-05-29 19:48:46 -04:00
committed by GitHub
parent 51bf6e96c4
commit 6f72b42954
+12 -12
View File
@@ -133,15 +133,15 @@ jobs:
SavvyCAN_CIBuild.zip SavvyCAN_CIBuild.zip
SavvyCAN-macOS_x64.dmg/SavvyCAN.dmg SavvyCAN-macOS_x64.dmg/SavvyCAN.dmg
#notify: notify:
# name: Notify Discord name: Notify Discord
# needs: [buildwindows, buildmacos, buildlinux] needs: [buildwindows, buildmacos, buildlinux]
# runs-on: ubuntu-latest runs-on: ubuntu-latest
# steps: steps:
# - name: Notify Discord - name: Notify Discord
# run: | run: |
# curl -i -H "Accept: application/json" \ curl -i -H "Accept: application/json" \
# -H "Content-Type:application/json" \ -H "Content-Type:application/json" \
# -X POST \ -X POST \
# --data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"Commit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \ --data "{\"content\": null,\"embeds\": [{\"title\": \"${{ github.repository }} Build Complete\", \"description\": \"Commit: ${{ github.sha }}\\n[Build Artifacts](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}#artifacts)\", \"color\": 5131997, \"author\": { \"name\": \"Github Builds\" } } ]}" \
# https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }} https://discord.com/api/webhooks/${{ secrets.WEBHOOK_ID }}/${{ secrets.WEBHOOK_TOKEN }}