Skip to content

Commit

Permalink
fixing secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthonyp0329 committed Apr 25, 2024
1 parent 3031777 commit 4e03c88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/firebase-hosting-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
cd backend/
touch .env
echo DATABASE_URL=${{ secrets.FIREBASE_TOKEN }} >> .env
echo DATABASE_URL=${{ secrets.MONGO_URL }} >> .env
echo DEV_PORT=3001 >> .env
echo NODE_ENV=deployment >> .env
npm ci
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/firebase-hosting-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ jobs:
cd admin-portal-frontend/
npm ci
npm run build
- name: Install backend dependencies
run: |
cd backend/
touch .env
echo DATABASE_URL=${{ secrets.MONGO_URL }} >> .env
echo DEV_PORT=3001 >> .env
echo NODE_ENV=deployment >> .env
npm ci
- uses: FirebaseExtended/action-hosting-deploy@v0
with:
repoToken: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 4e03c88

Please sign in to comment.