Skip to content

Commit 8196377

Browse files
committed
Add manual Netlify deploy trigger
1 parent c355acc commit 8196377

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
- name: Trigger deploy
14+
with:
15+
NETLIFY_BUILD_HOOK_ID: ${{ secrets.NETLIFY_BUILD_HOOK_ID }}
16+
run: curl -X POST -d '{}' https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK_ID

0 commit comments

Comments
 (0)