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
24 changes: 19 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Create Release
name: Create Release and Notify Discord

on:
push:
Expand Down Expand Up @@ -30,15 +30,29 @@ jobs:
found { print }
" "$CHANGELOG")

echo "--- Extracted body ---"
echo "$BODY"

echo "body<<EOF" >> $GITHUB_OUTPUT
echo "$BODY" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT

- name: Create GitHub Release
id: create_release
uses: softprops/action-gh-release@v2
with:
body: ${{ steps.changelog.outputs.body }}
make_latest: true
make_latest: true

- name: Send Discord Notification
uses: sarisia/actions-status-discord@v1
if: success()
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
content: "@everyone A new update has been published!"
title: "🍁 Release ${{ github.ref_name }}"
description: |
${{ steps.changelog.outputs.body }}

[View Full Release on GitHub](${{ steps.create_release.outputs.url || format('https://github.com/{0}/releases/tag/{1}', github.repository, github.ref_name) }})

color: 0xA728F3
username: Nova Release
avatar_url: https://raw.githubusercontent.com/nova-guild/nova/main/nova-release.png
22 changes: 0 additions & 22 deletions .github/workflows/release_notify.yml

This file was deleted.

Binary file added nova-release.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading