aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-08-31 22:16:22 +0200
committernea <nea@nea.moe>2023-08-31 22:32:56 +0200
commitece429c361b0ac30490d74ec33c6ef4a74a1fc5d (patch)
treee3a92da911f2e33cd197d77bacf9fb13c69d059b /.github
parentcb032e7c221e40736ab26b193eea4e32d06113d9 (diff)
downloadFirmament-ece429c361b0ac30490d74ec33c6ef4a74a1fc5d.tar.gz
Firmament-ece429c361b0ac30490d74ec33c6ef4a74a1fc5d.tar.bz2
Firmament-ece429c361b0ac30490d74ec33c6ef4a74a1fc5d.zip
Add discord webhook build artifact
[no changelog]
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml14
1 files changed, 14 insertions, 0 deletions
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 }}
+