mirror of
https://github.com/mihonapp/mihon-preview.git
synced 2025-11-08 20:59:11 +01:00
Rework website update workflow (#35)
This commit is contained in:
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@@ -153,13 +153,3 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
keep_latest: 28
|
keep_latest: 28
|
||||||
delete_tags: true
|
delete_tags: true
|
||||||
|
|
||||||
- name: Update website
|
|
||||||
run: |
|
|
||||||
curl -L \
|
|
||||||
-X POST \
|
|
||||||
-H "Accept: application/vnd.github+json" \
|
|
||||||
-H "Authorization: Bearer ${{ secrets.MIHON_BOT_TOKEN }}" \
|
|
||||||
-H "X-GitHub-Api-Version: 2022-11-28" \
|
|
||||||
https://api.github.com/repos/mihonapp/website/dispatches \
|
|
||||||
-d '{"event_type":"app_release"}'
|
|
||||||
|
|||||||
23
.github/workflows/post_release.yml
vendored
Normal file
23
.github/workflows/post_release.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
name: Post release
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types:
|
||||||
|
- published
|
||||||
|
- unpublished
|
||||||
|
- edited
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update_website:
|
||||||
|
runs-on: 'ubuntu-24.04'
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Update website
|
||||||
|
run: |
|
||||||
|
curl --fail-with-body -L \
|
||||||
|
-X POST \
|
||||||
|
-H "Accept: application/vnd.github+json" \
|
||||||
|
-H "Authorization: Bearer ${{ secrets.MIHON_BOT_TOKEN }}" \
|
||||||
|
-H "X-GitHub-Api-Version: 2022-11-28" \
|
||||||
|
https://api.github.com/repos/mihonapp/website/dispatches \
|
||||||
|
-d '{"event_type":"app_release"}'
|
||||||
Reference in New Issue
Block a user