Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeJerred authored Jul 11, 2022
1 parent d4a783d commit d161787
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: release

on:
workflow_dispatch:
release:
types: [released]

Expand All @@ -10,13 +9,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Test
run: echo '[{"title":"${{ github.event.release.tag_name }}","url":"${{ github.event.release.html_url }}"}]'
- name: Post to Discord
uses: Ilshidur/action-discord@master
env:
DISCORD_WEBHOOK: ${{ secrets.discord_webhook }}
DISCORD_EMBEDS: '[{"title":"1.0.0-beta.0","url":"https://github.com/LogicOverSnacks/glint-release/releases/tag/v1.0.0-beta.0"}]'
OLD_DISCORD_EMBEDS: '[{"title":"${{ github.event.release.tag_name }}","url":"${{ github.event.release.html_url }}"}]'
DISCORD_EMBEDS: '[{"title":"${{ github.event.release.tag_name }} · Glint","url":"${{ github.event.release.html_url }}","description":"${{ github.event.release.body }}"}]'
with:
args: 'New version released!'

0 comments on commit d161787

Please sign in to comment.