Add back discord uploader
[no changelog]
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -14,6 +14,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
name: Checkout repository
|
name: Checkout repository
|
||||||
|
with:
|
||||||
|
fetch-tags: true
|
||||||
- name: Set up JDK 21
|
- name: Set up JDK 21
|
||||||
uses: actions/setup-java@v4
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
@@ -28,9 +30,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: build/libs/Firmament-*.jar
|
path: build/libs/Firmament-*.jar
|
||||||
- name: Move build artifact around
|
- name: Move build artifact around
|
||||||
id: artifact-rename
|
|
||||||
run: |
|
run: |
|
||||||
rm -f build/libs/*sources*.jar
|
rm -f build/libs/*sources*.jar
|
||||||
newfilename=build/libs/Firmament-$(git rev-parse --short HEAD).jar
|
- name: Upload to discord
|
||||||
echo filename=$newfilename >>"$GITHUB_OUTPUT"
|
run: |
|
||||||
mv build/libs/Firmament-*.jar $newfilename
|
curl "$WEBHOOK_URL" -X POST -H "Content-type: multipart/form-data" --form "files[0]=@$(echo build/libs/*.jar)"
|
||||||
|
env:
|
||||||
|
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
|
||||||
|
|||||||
Reference in New Issue
Block a user