Skip to content

Commit f47a86b

Browse files
Red-AsukaSwilder-M
authored andcommitted
feat(ci): add deploy workflow
1 parent ea4b660 commit f47a86b

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Deploy to AWS Amplify
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Trigger Amplify webhook
13+
run: |
14+
curl -X POST \
15+
-H "Content-Type: application/json" \
16+
-d {} \
17+
"https://webhooks.amplify.us-west-1.amazonaws.com/prod/webhooks?id=${{ secrets.MQTT_AI_AMPLIFY_ID }}&token=${{ secrets.MQTT_AI_AMPLIFY_TOKEN }}&operation=startbuild"

0 commit comments

Comments
 (0)