Skip to content
Merged
Show file tree
Hide file tree
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
Binary file added .github/assets/release-dino.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ jobs:
VERSION: ${{ steps.version.outputs.next }}
TAG: ${{ steps.version.outputs.tag }}
RELEASE_URL: ${{ github.server_url }}/${{ github.repository }}/releases/tag/${{ steps.version.outputs.tag }}
# Discord fetches embed images itself, so this has to be a public URL
# rather than an upload — served from this repo via raw. Pointed at
# `main` (not the SHA) so replacing the file replaces the art
# everywhere; Discord caches per URL, so a swap needs a new filename
# to show up promptly.
IMAGE_URL: https://raw.githubusercontent.com/${{ github.repository }}/main/.github/assets/release-dino.jpg
run: |
set -euo pipefail
# Secret absent on forks and for contributors without access — skip
Expand All @@ -191,13 +197,15 @@ jobs:
jq -n \
--arg version "$VERSION" \
--arg url "$RELEASE_URL" \
--arg image "$IMAGE_URL" \
'{
username: "parity",
embeds: [{
title: ("@decocms/parity v" + $version),
url: $url,
description: "Nova versão publicada.",
color: 5814783,
image: { url: $image },
fields: [
{
name: "CLI",
Expand Down
Loading