We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c355acc commit 7988c39Copy full SHA for 7988c39
.github/workflows/trigger_netlify_deploy.yml
@@ -0,0 +1,19 @@
1
+# .github/workflows/trigger_netlify_deploy.yml
2
+
3
+name: Trigger Netlify deploy
4
5
+on:
6
+ workflow_dispatch:
7
8
+jobs:
9
+ trigger_deploy:
10
+ runs-on: ubuntu-latest
11
12
+ steps:
13
+ - uses: actions/checkout@v4
14
15
+ - name: Trigger deploy
16
+ env:
17
+ NETLIFY_BUILD_HOOK_ID: ${{ secrets.NETLIFY_BUILD_HOOK_ID }}
18
+ run: |
19
+ bash scripts/trigger_netlify_deploy.sh
scripts/trigger_netlify_deploy.sh
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+# exit on first error
+set -e
+# trigger deploy via build hook
+curl -X POST -d "{}" https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK_ID
0 commit comments