From 027c72a23cd9d6952f3b6d00a57f6fe6ff1155cc Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Sun, 7 Sep 2025 22:24:42 +0200 Subject: ci: notify discord on release build --- .github/workflows/build.yml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to '.github/workflows') 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' -- cgit