Skip to content

Commit

Permalink
chore: Test Server Deploy Script에서 firebaseClient 값 올바르게 처리
Browse files Browse the repository at this point in the history
  • Loading branch information
youngkwon02 committed Oct 18, 2022
1 parent 2e2b838 commit 9983dc8
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/test-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# create firebase-sdk file
# Create firebase-sdk file
- name: Create Firebase SDK File
id: create-json
uses: jsdaniell/[email protected]
Expand All @@ -20,21 +20,29 @@ jobs:
json: ${{ secrets.FIREBASE_SDK }}
dir: "functions/"

# create .env file
# Create .env file
- name: Create .env
run: |
touch ./functions/.env
echo "${{ secrets.DOT_ENV }}" > ./functions/.env
shell: bash

# update .firebaserc file
# Update .firebaserc file
- name: Update .firebaserc
run: |
rm .firebaserc
touch .firebaserc
echo "${{ secrets.FIREBASE_RC }}" > .firebaserc
shell: bash

# Replace firebaseClient Config file
- name: Replace FirebaseClient Config file
run: |
rm ./functions/config/firebaseClient.js
touch ./functions/config/firebaseClient.js
echo "${{ secrets.TEST_SERVER_FIREBASE_CLIENT }}" > ./functions/config/firebaseClient.js
shell: bash

- name: Install npm packages
run: |
cd functions
Expand Down

0 comments on commit 9983dc8

Please sign in to comment.