-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Test Server Deploy Script에서 firebaseClient 값 올바르게 처리
- Loading branch information
1 parent
2e2b838
commit 9983dc8
Showing
1 changed file
with
11 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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] | ||
|
@@ -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 | ||
|