Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 0 additions & 35 deletions .github/workflows/release-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Loading