Skip to content

Commit 59968d2

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

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
curl -X POST -d "{}" https://api.netlify.com/build_hooks/$NETLIFY_BUILD_HOOK_ID

0 commit comments

Comments
 (0)