From 70bc93f049e04643b63e785f224a0fcfe068e314 Mon Sep 17 00:00:00 2001 From: Alexander Wang <98280966+AlexanderWangY@users.noreply.github.com> Date: Sun, 25 Feb 2024 00:57:19 -0500 Subject: [PATCH 1/2] Update main.yml --- .github/workflows/main.yml | 23 ++--------------------- 1 file changed, 2 insertions(+), 21 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f4d1cf5a7..1e212a15a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -24,28 +24,9 @@ jobs: working-directory: server/ - name: Set up environment variables - env: - API_KEY: ${{ secrets.API_KEY }} - AUTH_DOMAIN: ${{ secrets.AUTH_DOMAIN }} - PROJECT_ID: ${{ secrets.PROJECT_ID }} - STORAGE_BUCKET: ${{ secrets.STORAGE_BUCKET }} - MESSAGING_SENDER_ID: ${{ secrets.MESSAGING_SENDER_ID }} - APP_ID: ${{ secrets.APP_ID }} - MESSAGE_OUTREACH_RADIUS: ${{ secrets.MESSAGE_OUTREACH_RADIUS }} - EXPRESS_PORT: ${{ secrets.EXPRESS_PORT }} - SOCKET_PORT: ${{ secrets.SOCKET_PORT }} - SOCKET_TEST_CLIENT_PORT: ${{ secrets.SOCKET_TEST_CLIENT_PORT }} run: | - echo "API_KEY=${API_KEY}" >> .env - echo "AUTH_DOMAIN=${AUTH_DOMAIN}" >> .env - echo "PROJECT_ID=${PROJECT_ID}" >> .env - echo "STORAGE_BUCKET=${STORAGE_BUCKET}" >> .env - echo "MESSAGING_SENDER_ID=${MESSAGING_SENDER_ID}" >> .env - echo "APP_ID=${APP_ID}" >> .env - echo "message_outreach_radius=${MESSAGE_OUTREACH_RADIUS}" >> .env - echo "express_port=${EXPRESS_PORT}" >> .env - echo "socket_port=${SOCKET_PORT}" >> .env - echo "socket_test_client_port=${SOCKET_TEST_CLIENT_PORT}" >> .env + mkdir private_key + echo "${{ secrets.SERVICE_ACCOUNT_SECRET }}" > private_key/private.json working-directory: server/ - name: Compile TypeScript files From 4ac5a90a81383d397a4083331baedd410e2d0ea9 Mon Sep 17 00:00:00 2001 From: Alexander Wang <98280966+AlexanderWangY@users.noreply.github.com> Date: Sun, 25 Feb 2024 01:03:28 -0500 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1e212a15a..63e78b21a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -27,7 +27,7 @@ jobs: run: | mkdir private_key echo "${{ secrets.SERVICE_ACCOUNT_SECRET }}" > private_key/private.json - working-directory: server/ + working-directory: server/src - name: Compile TypeScript files run: npx tsc