aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 0cd0b64..080cef3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -95,3 +95,11 @@ jobs:
GH_TOKEN: ${{ github.token }}
run: |
gh release create --draft -t "Firmament ${GITHUB_REF#refs/tags/}" "${GITHUB_REF#refs/tags/}" -F "changelog.md" "*.jar"
+
+ - name: Notify discord
+ env:
+ ACTOR: ${{ github.actor }}
+ WEBHOOK: ${{ secrets.CONFIDENTIAL_WEBHOOK }}
+ REPO: ${{ github.repository }}
+ run: |
+ curl -X POST "$WEBHOOK" --data "$(jq -n --arg v "https://github.com/$REPO/releases/${GITHUB_REF#refs/tags/}" --arg a "$WEBHOOK" '{"content": ("Created release preview, ready for publishing: " + $v), "username": ("Release preview / " + $a), "avatar_url": ("https://github.com/" + $a + ".png")}')" -H 'content-type: application/json'