-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (36 loc) · 1.43 KB
/
announce-new-release.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
36
37
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: "Announce New Release"
on:
release:
types:
- "published"
jobs:
discord:
name: "Discord"
permissions: {}
runs-on: "ubuntu-latest"
steps:
- name: "Send Discord Webhook"
uses: "hugoalh/send-discord-webhook-ghaction@v7"
with:
key: "${{secrets.COMMUNITY_DISCORD_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}"
embeds: |-
- title: "Symmetric Crypto (ES)"
description: |-
> ${{github.event.repository.description}}
Version ${{github.event.release.name}} (`${{github.event.release.tag_name}}`) just released!
timestamp: "${{github.event.release.published_at}}"
color: "#F7DF1E"
author:
name: "${{github.event.release.author.login}}"
url: "${{github.event.release.author.html_url}}"
icon_url: "${{github.event.release.author.avatar_url}}"
fields:
- name: "📋 Changelog"
value: "${{github.event.release.html_url}}"
- name: "GitHub"
value: "${{github.event.repository.html_url}}"
- name: "JSR"
value: "https://jsr.io/@hugoalh/symmetric-crypto"
- name: "NPM"
value: "https://www.npmjs.com/package/@hugoalh/symmetric-crypto"