mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-27 19:06:23 +02:00
Replace GitHub Actions workflow with Gitea workflow for notifying API on release
This commit is contained in:
parent
efbeebafcb
commit
00a06c4dc8
1 changed files with 0 additions and 0 deletions
21
.github/workflows/add_release_to_site
vendored
21
.github/workflows/add_release_to_site
vendored
|
@ -1,21 +0,0 @@
|
|||
name: Notify API on Release
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
notify-api:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Send API Call for New Release
|
||||
run: |
|
||||
curl -X POST http://melonx.org/api/new_release \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "Authorization: Bearer ${{ secrets.MELONX_GITEA_API_KEY }}" \
|
||||
-d '{
|
||||
"version_number": "${{ github.event.release.tag_name }}",
|
||||
"download_link": "${{ github.event.release.html_url }}",
|
||||
"changelog": "${{ github.event.release.body }}",
|
||||
"is_latest": true
|
||||
}'
|
Loading…
Add table
Add a link
Reference in a new issue