diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 2997d56a..2ce2fbfc 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,6 +33,8 @@ jobs: AWS_S3_SECRET_KEY: ${{ secrets.AWS_S3_SECRET_KEY }} AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_REGION: ${{ secrets.AWS_REGION }} + FIREBASE_URI: $${{ secrets.FIREBASE_URI }} + FIREBASE_SERVICE_JSON: $${{ secrets.FIREBASE_SERVICE_JSON }} run: | touch application.properties @@ -58,6 +60,11 @@ jobs: echo cloud.aws.s3.bucket=$AWS_S3_BUCKET >> application.properties echo cloud.aws.region.static=$AWS_REGION >> application.properties echo cloud.aws.stack.auto=false >> application.properties + echo cloud.firebase.credentials.uri=$FIREBASE_URI >> application.properties + + mkdir firebase + touch ./firebase/firebase_service_key.json + echo $FIREBASE_SERVICE_JSON >> firebase_service_key.json - name: Set up JDK 11 uses: actions/setup-java@v1 diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml index cf45cb1c..94b47c59 100644 --- a/.github/workflows/pr-check.yml +++ b/.github/workflows/pr-check.yml @@ -33,6 +33,8 @@ jobs: AWS_S3_SECRET_KEY: ${{ secrets.AWS_S3_SECRET_KEY }} AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_REGION: ${{ secrets.AWS_REGION }} + FIREBASE_URI: $${{ secrets.FIREBASE_URI }} + FIREBASE_SERVICE_JSON: $${{ secrets.FIREBASE_SERVICE_JSON }} run: | touch application.properties @@ -58,6 +60,11 @@ jobs: echo cloud.aws.s3.bucket=$AWS_S3_BUCKET >> application.properties echo cloud.aws.region.static=$AWS_REGION >> application.properties echo cloud.aws.stack.auto=false >> application.properties + echo cloud.firebase.credentials.uri=$FIREBASE_URI >> application.properties + + mkdir firebase + touch ./firebase/firebase_service_key.json + echo $FIREBASE_SERVICE_JSON >> firebase_service_key.json - name: Set up JDK 11 uses: actions/setup-java@v1