From b696322bdd705c8984763a3a9fac1f86bfe91f94 Mon Sep 17 00:00:00 2001 From: Purdze <29306641+Purdze@users.noreply.github.com> Date: Sun, 25 Oct 2026 18:32:23 +0000 Subject: [PATCH] stop posting releases to discord --- .github/workflows/release-client.yml | 35 ---------------------------- 1 file changed, 35 deletions(-) diff --git a/.github/workflows/release-client.yml b/.github/workflows/release-client.yml index a743d6be1..557b36de4 100644 --- a/.github/workflows/release-client.yml +++ b/.github/workflows/release-client.yml @@ -262,38 +262,3 @@ jobs: - **macOS:** open `Pomme.app` with right-click → Open, or allow it under System Settings → Privacy & Security. - **Windows:** on the SmartScreen prompt, choose More info → Run anyway. - **Linux:** `chmod +x pomme-client-linux-x64-gnu.AppImage`, then run it. - - - name: Announce release on Discord - if: needs.check.outputs.prev != '' - continue-on-error: true - env: - GH_TOKEN: ${{ github.token }} - DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }} - TAG: ${{ needs.check.outputs.tag }} - shell: bash - run: | - if [ -z "$DISCORD_WEBHOOK_URL" ]; then - echo "No DISCORD_WEBHOOK_URL secret set; skipping Discord announcement." - exit 0 - fi - body=$(gh release view "$TAG" --json body --jq .body) - url=$(gh release view "$TAG" --json url --jq .url) - # Discord embed descriptions cap at 4096 chars; trim and link to the full notes. - max=3900 - if [ "${#body}" -gt "$max" ]; then - body="${body:0:$max}"$'\n\n'"…[full changelog]($url)" - fi - role_id="1513130412367675523" - payload=$(jq -n \ - --arg title "Pomme $TAG" \ - --arg desc "$body" \ - --arg url "$url" \ - --arg content "<@&$role_id> New Pomme release is out!" \ - --arg role "$role_id" \ - '{ - username: "Pomme Releases", - content: $content, - allowed_mentions: { roles: [$role] }, - embeds: [{ title: $title, url: $url, description: $desc, color: 5763719 }] - }') - curl -fsS -X POST -H "Content-Type: application/json" -d "$payload" "$DISCORD_WEBHOOK_URL"