We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f9e8139 + 827c752 commit 026e934Copy full SHA for 026e934
.github/workflows/website_deploy.yml
@@ -0,0 +1,21 @@
1
+---
2
+
3
+name: Deploy Website On Release
4
+on:
5
+ release:
6
+ types: [published]
7
+ workflow_dispatch:
8
9
+jobs:
10
+ dispatch:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - name: Dispatch event
14
+ run: |
15
+ http_status=$(curl -L -f -s -o /dev/null -w "%{http_code}" \
16
+ -X POST \
17
+ -H "Accept: application/vnd.github+json" \
18
+ -H "Authorization: Bearer ${{ secrets.DEPLOY_FLOW_WEBSITE }}" \
19
+ https://api.github.com/repos/Flow-Launcher/flow-launcher.github.io/dispatches \
20
+ -d '{"event_type":"deploy"}')
21
+ if [ "$http_status" -ne 204 ]; then echo "Error: Deploy trigger failed, HTTP status code is $http_status"; exit 1; fi
0 commit comments