Skip to content

Commit

Permalink
[PDS-56] feat: firebase service key upload
Browse files Browse the repository at this point in the history
  • Loading branch information
dangnak2 committed Dec 3, 2023
1 parent 6c824ab commit c410191
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/github-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
with:
name: "firebase_service_key.json"
json: ${{ secrets.FIREBASE_SERVICE_KEY }}
dir: './src/main/resources/firebase'

## gradle build
- name: Build with Gradle
Expand Down

0 comments on commit c410191

Please sign in to comment.