7777 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
7878 run : |
7979 gh release create $TAG_NAME --generate-notes
80-
81- - name : Discord notification
82- shell : bash
83- run : |
84- BODY=$(jq -nc \
85- --arg title "WaspLib Version $TAG_NAME" \
86- --arg desc "${{ github.event.workflow_run.head_commit.message }}\n\nDownload: https://github.com/WaspScripts/WaspLib/releases/tag/$TAG_NAME" \
87- --arg url "https://github.com/WaspScripts/WaspLib/commit/${{ github.event.workflow_run.head_commit.id }}" \
88- --arg foot "Author: ${{ github.event.workflow_run.head_commit.author.name }}" \
89- --argjson color 16742912 \
90- '{embeds:[{title:$title,description:$desc,url:$url,color:$color,footer:{text:$foot}}]}')
91- curl \
92- -H "Content-Type: application/json" \
93- -d "$BODY" \
94- ${{ secrets.UPDATES_WEBHOOK }}
9580
9681 - name : Create Uploaded Release
9782 run : |
@@ -111,4 +96,19 @@ jobs:
11196 curl -X PUT "$SUPABASE_URL/storage/v1/object/wasplib/latest.zip" \
11297 -H "Authorization: Bearer $SUPABASE_KEY" \
11398 -H "Content-Type: application/zip" \
114- --data-binary @"$ZIP_NAME"
99+ --data-binary @"$ZIP_NAME"
100+
101+ - name : Discord notification
102+ shell : bash
103+ run : |
104+ BODY=$(jq -nc \
105+ --arg title "WaspLib Version $TAG_NAME" \
106+ --arg desc "${{ github.event.workflow_run.head_commit.message }}\n\nDownload: https://github.com/WaspScripts/WaspLib/releases/tag/$TAG_NAME" \
107+ --arg url "https://github.com/WaspScripts/WaspLib/commit/${{ github.event.workflow_run.head_commit.id }}" \
108+ --arg foot "Author: ${{ github.event.workflow_run.head_commit.author.name }}" \
109+ --argjson color 16742912 \
110+ '{embeds:[{title:$title,description:$desc,url:$url,color:$color,footer:{text:$foot}}]}')
111+ curl \
112+ -H "Content-Type: application/json" \
113+ -d "$BODY" \
114+ ${{ secrets.UPDATES_WEBHOOK }}
0 commit comments