mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
21 lines
704 B
YAML
21 lines
704 B
YAML
---
|
|
|
|
name: Deploy Website On Release
|
|
on:
|
|
release:
|
|
types: [published]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
dispatch:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dispatch event
|
|
run: |
|
|
http_status=$(curl -L -f -s -o /dev/null -w "%{http_code}" \
|
|
-X POST \
|
|
-H "Accept: application/vnd.github+json" \
|
|
-H "Authorization: Bearer ${{ secrets.DEPLOY_FLOW_WEBSITE }}" \
|
|
https://api.github.com/repos/Flow-Launcher/flow-launcher.github.io/dispatches \
|
|
-d '{"event_type":"deploy"}')
|
|
if [ "$http_status" -ne 204 ]; then echo "Error: Deploy trigger failed, HTTP status code is $http_status"; exit 1; fi
|