Skip to content

Commit

Permalink
fix(server): add .env file with secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Oct 22, 2023
1 parent 8d0644a commit 1e54684
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
# working-directory: functions
# run: npm run test:ci

- name: Create .env file
run: echo "OPENAI_API_KEY=${{ secrets.OPENAI_API_KEY }}" > .env

- name: Deploy Cloud Functions
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: bun x firebase deploy --only functions:translate --token "${{ secrets.FIREBASE_TOKEN }}"

0 comments on commit 1e54684

Please sign in to comment.