forked from dhusemann/idlecombos
-
-
Notifications
You must be signed in to change notification settings - Fork 4
27 lines (24 loc) · 822 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
on:
release:
types:
- 'published'
name: Publish Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get Latest Release
id: latest_release
uses: kaliber5/action-get-release@v1
with:
token: ${{ github.token }}
latest: true
- name: Discord Publish
uses: rjstone/discord-webhook-notify@v1
with:
severity: info
description: "**NEW:** ${{steps.latest_release.outputs.name}} has been released."
details: "**DOWNLOAD:** [${{steps.latest_release.outputs.name}}](${{steps.latest_release.outputs.html_url}})"
footer: "PUBLISHED: ${{steps.latest_release.outputs.published_at}} ID: ${{steps.latest_release.outputs.id}}"
text: ""
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }}