fixed workflow
- write env secret to a file
This commit is contained in:
parent
090fe7d8e4
commit
18cb84a247
1 changed files with 6 additions and 2 deletions
8
.github/workflows/functions.yml
vendored
8
.github/workflows/functions.yml
vendored
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue