add notification

This commit is contained in:
Randy Lu
2025-11-02 23:43:16 +08:00
parent 901b8ac437
commit 3db764ce77
4 changed files with 23 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
Use GitHub CLI to trigger the "publish" workflow with inputs:
- create_release: false
- version: Read from `src-tauri/tauri.conf.json`'s `version` field
- releaseBody: leave it blank
+3
View File
@@ -0,0 +1,3 @@
Use Github CLI to change the latest version draft release to a published release on the repo djyde/ccmate-release.
The release tag is `app-v__VERSION__`. The `__VERSION__` is the version number in `src-tauri/tauri.conf.json`.
+2 -1
View File
@@ -13,7 +13,8 @@
"Bash(pnpm dlx shadcn@latest add:*)",
"Bash(pnpm exec biome check:*)",
"Bash(pnpm install:*)",
"Bash(pnpm search:*)"
"Bash(pnpm search:*)",
"Bash(gh release list:*)"
],
"deny": [],
"ask": []
+13
View File
@@ -126,3 +126,16 @@ jobs:
releaseDraft: true
prerelease: false
args: ${{ matrix.args }}
notify-build-success:
needs: publish-tauri
runs-on: ubuntu-latest
if: ${{ success() }}
steps:
- name: Send build success notification
run: |
curl \
-H "Title: CC Mate build finished" \
-H "Tags: ccmate,github_action" \
-d "✅ CC Mate build has finished. Ready to release." \
https://ntfy.sh/randyloop