ci: add the dino art to the release message - #337
Merged
Conversation
Discord fetches embed images itself, so it needs a public URL rather than an upload -- served from this public repo via raw.githubusercontent, pointed at main. Source was 1254x1254 / 2.1MB, which is a lot to re-fetch every release when Discord renders embed images around 400px wide. Ships resized to 600px as JPEG at 135KB (~16x smaller); PNG at the same size was 562KB and the illustration needs no transparency. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the dino art to the release message.
How it gets there
Discord fetches embed images itself, so it needs a public URL, not an upload. The repo is public, so the file is served from it via
raw.githubusercontent.com, pointed atmain.Two consequences worth knowing:
Size
The source was 1254×1254, 2.1 MB. That's a lot to re-fetch on every release, and Discord renders embed images around 400px wide anyway — so it ships resized to 600px and encoded as JPEG: 135 KB, ~16× smaller. Checked the result visually first; the thought bubble, the hoodie and the sign text all stay legible at that size. JPEG over PNG because the illustration is photographic-ish and needs no transparency (562 KB as PNG at the same dimensions).
Verified
publish.ymlparses, 11 steps, last isNotify Discordimage.urland both fields intactmain— which happens before the publish job runs, so the first message already has itNote: it's a full-width
image. Publishes fire on every merge tomain, so this shows up often — switching tothumbnail(small, top-right) is a one-word change if it turns out too loud in the channel.🤖 Generated with Claude Code
Summary by cubic
Release notifications previously contained no artwork; they now include the dino image as a full-width Discord embed image. The workflow uses a public URL on
main, so replacing the asset at the same path changes the artwork for existing messages and Discord may cache updates.New Features
Written for commit 93db7c9. Summary will update on new commits.