From 1e5468424ca7d698d6c71a19ac1387c381b33fc3 Mon Sep 17 00:00:00 2001 From: Amit Moryossef Date: Sun, 22 Oct 2023 15:36:33 +0200 Subject: [PATCH] fix(server): add .env file with secrets --- .github/workflows/server.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/server.yml b/.github/workflows/server.yml index 472f97dd..626a0230 100644 --- a/.github/workflows/server.yml +++ b/.github/workflows/server.yml @@ -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 }}"