-
-
Notifications
You must be signed in to change notification settings - Fork 38
35 lines (32 loc) · 1.91 KB
/
announce.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
28
29
30
31
32
33
34
35
name: Announcements
on:
release:
types: [published]
jobs:
synthesis:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v3
- name: "Discord Notification"
run: |
curl \
-H "Content-Type: application/json" \
-d '{
"username": "mattpannella",
"avatar_url": "https://avatars.githubusercontent.com/u/4806679",
"content": "Pocket Updater Utility Release",
"embeds": [{
"color": 4819409,
"title": "${{ github.event.release.name }}",
"fields": [
{ "name": "Release Notes", "value": "[Click Me](https://github.com/mattpannella/pocket-updater-utility/releases/tag/${{ github.event.release.tag_name }})", "inline": true },
{ "name": "Version", "value": "${{ github.event.release.tag_name }}", "inline": true },
{ "name": "macOS Build", "value": "[Download Me](https://github.com/mattpannella/pocket-updater-utility/releases/download/${{ github.event.release.tag_name }}/pocket_updater_mac.zip)" },
{ "name": "Linux Build", "value": "[Or Me](https://github.com/mattpannella/pocket-updater-utility/releases/download/${{ github.event.release.tag_name }}/pocket_updater_linux.zip)" },
{ "name": "Linux ARM64 Build", "value": "[This is for creeps](https://github.com/mattpannella/pocket-updater-utility/releases/download/${{ github.event.release.tag_name }}/pocket_updater_linux_arm.zip)" },
{ "name": "Windows Build", "value": "[This is a virus](https://github.com/mattpannella/pocket-updater-utility/releases/download/${{ github.event.release.tag_name }}/pocket_updater_win.zip)" }
]
}]
}' \
${{ secrets.DISCORD_WEBHOOK }}