Update words.ts #237
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy to Firebase | |
on: | |
push: | |
branches: | |
- master | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} | |
FIREBASE_CONFIG: ${{ secrets.FIREBASE_CONFIG }} | |
GCLOUD_PROJECT: ${{ secrets.GCLOUD_PROJECT }} | |
MAIN_KEY: ${{ secrets.MAIN_KEY }} | |
MONGO_URI: ${{ secrets.MONGO_URI }} | |
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }} | |
SENDGRID_NEW_DEVELOPER_ACCOUNT_TEMPLATE: ${{ secrets.SENDGRID_NEW_DEVELOPER_ACCOUNT_TEMPLATE }} | |
GA_TRACKING_ID: ${{ secrets.GA_TRACKING_ID }} | |
GA_API_SECRET: ${{ secrets.GA_API_SECRET }} | |
REDIS_URL: ${{ secrets.REDIS_URL }} | |
GITHUB_STATS_TOKEN: ${{ secrets.GITHUB_STATS_TOKEN }} | |
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} | |
AWS_REGION: ${{ secrets.AWS_REGION }} | |
NODE_ENV: production | |
jobs: | |
deploy: | |
name: Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
- name: Setup Node | |
uses: actions/setup-node@v2.1.2 | |
with: | |
node-version: '18' | |
- name: Install Project Dependencies | |
run: | | |
rm -rf ./node_modules; yarn install | |
npm install -g firebase-tools | |
- name: Install Cloud Dependencies | |
run: | | |
cd functions; rm -rf ./node_modules/; yarn; cd ..; pwd | |
firebase use default --token $FIREBASE_TOKEN | |
- name: Migrate MongoDB Data | |
run: | | |
firebase functions:config:set env.redis_status=true runtime.env=production --token $FIREBASE_TOKEN | |
yarn migrate-up | |
- name: Build Production Project | |
run: | | |
firebase functions:config:set runtime.env=production --token $FIREBASE_TOKEN | |
yarn build | |
- name: Deploy to prod | |
uses: docker://w9jds/firebase-action:master | |
with: | |
args: deploy --project=igbo-api-bb22d --only functions,hosting | |
env: | |
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }} |