From ece429c361b0ac30490d74ec33c6ef4a74a1fc5d Mon Sep 17 00:00:00 2001 From: nea Date: Thu, 31 Aug 2023 22:16:22 +0200 Subject: Add discord webhook build artifact [no changelog] --- .github/workflows/build.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to '.github/workflows') diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index cb2d8b8..9b701d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,4 +27,18 @@ jobs: uses: actions/upload-artifact@v3 with: path: build/libs/Firmament-*.jar + - name: Move build artifact around + id: artifact-rename + run: | + rm -f build/libs/*sources*.jar + newfilename=build/libs/Firmament-$(git rev-parse --short HEAD).jar + echo filename=$newfilename >>"$GITHUB_OUTPUT" + mv build/libs/Firmament-*.jar $newfilename + - name: Upload artifact to discord + if: ${{ github.ref == 'refs/heads/master' }} + uses: tsickert/discord-webhook@v5.3.0 + with: + webhook-url: ${{ secrets.WEBHOOK_URL }} + filename: ${{ steps.artifact-rename.outputs.filename }} + -- cgit