diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 607e134..8aaa03d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -76,3 +76,24 @@ jobs: with: files: spark-mcp-linux-amd64 generate_release_notes: true + + - name: Notify release via Bark + if: success() + run: | + TITLE="${{ github.ref_name }}" + BODY="spark-mcp ${TITLE} released: ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/releases/tag/${TITLE}" + curl -s \ + -X POST http://101.43.40.124:81/push \ + -H "Content-Type: application/json; charset=utf-8" \ + -d "$(jq -n \ + --arg device_key "6ZFVsxM95cuAjYoNLWSWaN" \ + --arg title "$TITLE" \ + --arg body "$BODY" \ + '{ + device_key: $device_key, + title: $title, + body: $body, + group: "backup", + isArchive: 1, + ttl: 3600 + }')"