name: Build and deploy staging to google could storage
working-directory: ./ci-cd-pipeline-for-smart-contracts/front-end-cd
node-version: ${{ matrix.node }}
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
- name: 'Set up Cloud SDK'
run: yarn install && yarn run build
- name: Deploy app build to GCS bucket
gsutil -m rsync -R ./build gs://${{secrets.GCS_BUCKET}}/${{github.run_id}}