mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 03:16:23 +02:00
(hopefully this work) Add: Action for adding release to site
This commit is contained in:
parent
b85758ba88
commit
efbeebafcb
1 changed files with 21 additions and 0 deletions
21
.github/workflows/add_release_to_site
vendored
Normal file
21
.github/workflows/add_release_to_site
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
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