aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
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 }}
+