diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 0ffba0dbe..5f28ce6ee 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -302,3 +302,36 @@ jobs: artifacts/eqemu-server-linux-x64.zip artifacts/eqemu-server-windows-x64.zip artifacts/SHA256SUMS.txt + - name: Notify Discord + env: + DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} + TAG_NAME: ${{ github.ref_name }} + REPO: ${{ github.repository }} + run: | + if [ -z "$DISCORD_WEBHOOK_URL" ]; then + echo "DISCORD_WEBHOOK_URL is not set; skipping Discord notification." + exit 0 + fi + LINUX_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-linux-x64.zip" + WINDOWS_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/eqemu-server-windows-x64.zip" + SHA_URL="https://github.com/${REPO}/releases/download/${TAG_NAME}/SHA256SUMS.txt" + payload=$(cat <