1
0
Fork 0

fixed workflow

- write env secret to a file
This commit is contained in:
Kim, Jimin 2022-02-27 11:03:54 +09:00
parent 090fe7d8e4
commit 18cb84a247

View file

@ -26,8 +26,12 @@ jobs:
- name: Restore secrets
run: |
echo EOF${{ secrets.SECRET_JSON }}EOF > ./functions/src/secret.json
echo EOF${{ secrets.FIREBASE_ADMINSDK_JSON }}EOF > ./functions/src/firebase-adminsdk.json
echo $DEV_ENV_FILE > ./functions/src/secret.json
echo $DEV_ENV_FILE > ./functions/src/firebase-adminsdk.json
shell: bash
env:
SECRET_JSON: ${{ secrets.SECRET_JSON }}
FIREBASE_ADMINSDK_JSON: ${{ secrets.FIREBASE_ADMINSDK_JSON }}
- name: Build
run: npm --prefix functions run build