auto updated plugins #237
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Website | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- 'plugins.json' | |
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_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 |