Skip to content

Commit

Permalink
chore: deploy workflow with env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lihini committed Apr 26, 2024
1 parent b95749b commit 6e5ee6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/firebase-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ jobs:
- name: Set env vars
run: |
if [ ${{ github.ref }} == 'refs/heads/main' ]; then
DB='mongodb+srv://gaveshalabsdev:[email protected]/weatherkids'
DB=${{ secrets.WEATHERKIDS_DB_URL_PROD }}
FILE='.env.prod'
else
DB='mongodb+srv://gaveshalabsdev:[email protected]/weatherkids-dev'
DB=${{ secrets.WEATHERKIDS_DB_URL_DEV }}
FILE='.env.dev'
fi
echo "DB_FOR_BRANCH=$DB" >> $GITHUB_ENV
Expand Down

0 comments on commit 6e5ee6c

Please sign in to comment.