Repository navigation
Conversation
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.
What changed and why
The community Discord's
#releaseschannel was set up to receive every release automatically; the wiring was missing. When a release is published, thepublishjob now posts one line to the channel: the version and the download address, with the note that checksums sit inSHA256SUMSon the release page.How it activates
The webhook's URL lives in the repository secret
DISCORD_WEBHOOK_URL(an admin sets it to the#releaseschannel's webhook URL). While that secret is unset the step skips itself, so this change is safe to merge before that; andcontinue-on-errorkeeps a Discord hiccup from failing a published release.Nothing references the URL itself anywhere in the repository, only the secret's name.
For the other channel
#github(pushes, pull requests, issues) is better served by a repository webhook pointing at that channel's webhook URL, which is an admin's two minutes in Settings, Webhooks. Deliberately no webhook for#contributions: that one is a conversation channel, the feed lives in#github.Test
The step runs only on GitHub's runners (this workflow triggers on
v*tags and manual dispatch, so pull requests do not execute it). Thejq -n --argpayload construction is the standard form andjqis preinstalled onubuntu-latest; the YAML was checked by hand and the step skips on every run until the secret exists.