-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 875 Bytes
/
fly.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deploy to Fly.io
"on":
push:
branches:
- production
workflow_dispatch:
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
- run: flyctl deploy --remote-only
send_notif:
needs: deploy
name: Send SMS Notification
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ammar-ahmed22/[email protected]
with:
TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH_TOKEN }}
TWILIO_PHONE_NUMBER: ${{ secrets.TWILIO_PHONE_NUMBER }}
PHONE_NUMBER: "+14168364386"
withRepoOwner: false
note: "API is live at: https://api.ammarahmed.ca"