From 8480c9f8c5dd1a8336497671e97fc1b5a626799c Mon Sep 17 00:00:00 2001 From: shinsj4653 Date: Tue, 16 Jan 2024 00:08:32 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 50d8597..8eb6657 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,6 +19,9 @@ permissions: jobs: build: runs-on: ubuntu-latest + defaults: + run: + working-directory: ./server steps: # 기본 체크아웃 @@ -35,11 +38,15 @@ jobs: distribution: 'temurin' # 환경 변수 설정 - name: Set environment values - run: | - cd ./src/main/resources - touch ./application.properties - echo "FIREBASE_KEYPATH=${{ secrets.FIREBASE_KEYPATH }}" >> application.properties + run: echo "FIREBASE_KEYPATH=${{ secrets.FIREBASE_KEYPATH }}" >> application.properties + working-directory: ./src/main/resources + shell: bash + + - name: Set serviceAccountKey.json + run: echo "${{ secrets.SERVICE_ACCOUNT_KEY_JSON }}" >> serviceAccountKey.json + working-directory: ./src/main/resources shell: bash + # Gradle build (Test 제외) - name: Build with Gradle uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1