try diff gcs flow

This commit is contained in:
41666 2020-12-06 19:13:26 -05:00
parent 5763b3f279
commit 8a57e10e78

View file

@ -83,16 +83,12 @@ jobs:
echo 'webpack_config = "src/backend-worker/webpack.config.js"' | tee -a wrangler.toml echo 'webpack_config = "src/backend-worker/webpack.config.js"' | tee -a wrangler.toml
wrangler build wrangler build
- name: Set up Cloud SDK - id: upload-file
uses: google-github-actions/setup-gcloud@master uses: google-github-actions/upload-cloud-storage@main
with: with:
project_id: ${{ secrets.GCP_PROJECT_ID }} path: worker/script.js
service_account_key: ${{ secrets.GCP_TF_KEY }} destination: roleypoly-artifacts/backend-worker/${{ github.sha }}
export_default_credentials: true credentials: ${{ secrets.GCP_TF_KEY }}
- name: Publish to GCS
run: |
gsutil cp worker/script.js gs://roleypoly-artifacts/backend-worker/${{ github.sha }}
docker_build: docker_build:
name: Docker Build & Publish name: Docker Build & Publish