From c410191415ea2fc5281b2ad200ace0bb9e1530d5 Mon Sep 17 00:00:00 2001 From: dangnak2 <80161984+dangnak2@users.noreply.github.com> Date: Sun, 3 Dec 2023 16:55:07 +0900 Subject: [PATCH] [PDS-56] feat: firebase service key upload --- .github/workflows/github-action.yml | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/.github/workflows/github-action.yml b/.github/workflows/github-action.yml index 0cd59c6e..2d876156 100644 --- a/.github/workflows/github-action.yml +++ b/.github/workflows/github-action.yml @@ -53,15 +53,25 @@ jobs: echo "${{ secrets.PROPERTIES_PROD }}" > ./application-prod.yml shell: bash +# ## create firebase_service_key-dev.json +# - name: make firebase_service_key.json +# if: contains(github.ref, 'develop') +# run: | +# mkdir ./src/main/resources/firebase +# cd ./src/main/resources/firebase +# touch ./firebase_service_key.json +# echo "${{ secrets.FIREBASE_SERVICE_KEY}}" > ./firebase_service_key.json +# shell: bash ## create firebase_service_key-dev.json - name: make firebase_service_key.json if: contains(github.ref, 'develop') - run: | - mkdir ./src/main/resources/firebase - cd ./src/main/resources/firebase - touch ./firebase_service_key.json - echo "${{ secrets.FIREBASE_SERVICE_KEY}}" > ./firebase_service_key.json - shell: bash + run: mkdir ./src/main/resources/firebase + id: create-json + uses: jsdaniell/create-json@v1.2.2 + with: + name: "firebase_service_key.json" + json: ${{ secrets.FIREBASE_SERVICE_KEY }} + dir: './src/main/resources/firebase' ## gradle build - name: Build with Gradle