Skip to content

Commit 5d35b38

Browse files
committed
fix: log version to DB
1 parent d179480 commit 5d35b38

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/version-release.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,20 @@ jobs:
9898
-H "Content-Type: application/zip" \
9999
--data-binary @"$ZIP_NAME"
100100
101+
- name: Insert release metadata into Supabase
102+
env:
103+
SUPABASE_URL: ${{ secrets.SUPABASE_URL }}
104+
SUPABASE_KEY: ${{ secrets.SUPABASE_ANON_KEY }}
105+
run: |
106+
DATA=$(jq -nc --arg version "$TAG_NAME" '{version:$version}')
107+
curl -X POST "$SUPABASE_URL/rest/v1/wasplib" \
108+
-H "apikey: $SUPABASE_KEY" \
109+
-H "Authorization: Bearer $SUPABASE_KEY" \
110+
-H "Content-Type: application/json" \
111+
-H "Accept-Profile: scripts" \
112+
-d "$DATA"
113+
114+
101115
- name: Discord notification
102116
shell: bash
103117
run: |

0 commit comments

Comments
 (0)