Skip to content

Merge pull request #131 from ammar-ahmed22/bug/130 #76

Merge pull request #131 from ammar-ahmed22/bug/130

Merge pull request #131 from ammar-ahmed22/bug/130 #76

# This file was auto-generated by the Firebase CLI
# https://github.com/firebase/firebase-tools
name: Deploy to Firebase Hosting on merge
'on':
push:
branches:
- production
paths:
- src/**
- public/**
workflow_dispatch:
env:
CI: false
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile
- run: CI=false yarn run build
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: '${{ secrets.GITHUB_TOKEN }}'
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_AMMARAHMED_986FB }}'
channelId: live
projectId: ammarahmed-986fb
send_notif:
needs: build_and_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: 'Site is live at: https://ammarahmed.ca'