File tree 5 files changed +126
-98
lines changed
5 files changed +126
-98
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ coverage.xml
10
10
.coverage *
11
11
* .svg
12
12
frontend /node_modules /
13
+ bin /
14
+ * .bin
13
15
14
16
.vscode /
15
17
.ruff_cache /
Original file line number Diff line number Diff line change 1
- name : " Release Please"
1
+ name : " Release Please and Notify Discord "
2
2
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
workflow_dispatch :
8
-
8
+
9
9
permissions :
10
10
contents : write
11
11
pull-requests : write
15
15
runs-on : ubuntu-latest
16
16
steps :
17
17
- uses : googleapis/release-please-action@v4
18
+ id : release
18
19
with :
19
20
token : ${{ secrets.RELEASE_PLEASE_TOKEN }}
20
- release-type : python
21
+ release-type : python
22
+
23
+ - name : Checkout code
24
+ if : ${{ steps.release.outputs.release_created }}
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Install deps
28
+ if : ${{ steps.release.outputs.release_created }}
29
+ run : sudo apt-get install -y jq curl
30
+
31
+ - name : Announce release
32
+ if : ${{ steps.release.outputs.release_created }}
33
+ env :
34
+ DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
35
+ VERSION : ${{ steps.release.outputs.tag_name }}
36
+ run : |
37
+ RELEASE_NOTES=$(awk '/^## Version \[${{ env.VERSION }}\]/ {flag=1; next} /^## Version \[/ {flag=0} flag' CHANGELOG.md)
38
+ ANNOUNCEMENT_BODY="🚀🎉 **New Release: Version ${{ env.VERSION }}**${RELEASE_NOTES}"
39
+ ESCAPED_BODY=$(echo "$ANNOUNCEMENT_BODY" | jq -Rsa .)
40
+ curl -H "Content-Type: application/json" \
41
+ -d "{\"content\": $ESCAPED_BODY, \"flags\": 4}" \
42
+ $DISCORD_WEBHOOK
Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ profile.svg
13
13
* .lockb
14
14
* .pkl
15
15
* .bak
16
+ bin /
17
+ * .bin
18
+ .secrets *
19
+ event.json
16
20
17
21
# Python bytecode / Byte-compiled / optimized / DLL files
18
22
__pycache__ /
You can’t perform that action at this time.
0 commit comments