Skip to content

Add upload to gcs bucket workflow #4

Add upload to gcs bucket workflow

Add upload to gcs bucket workflow #4

name: Upload to GCS Bucket
on:
push:
branches:
- main
jobs:
upload:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- id: "auth"
uses: "google-github-actions/auth@v1"
with:
credentials_json: "${{ secrets.GCP_SA_KEY }}"
- name: "Set up Cloud SDK"
uses: "google-github-actions/setup-gcloud@v1"
- name: "Debug logging"
run: |
echo "hello world"
echo "${{ secrets.GCP_GCS_BUCKET_NAME }}"
- name: Upload to GCS
uses: google-github-actions/upload-cloud-storage@v1
with:
credentials: ${{ secrets.GCP_SA_KEY }}
path: ./gcs/store.json
destination: ${{ secrets.GCP_GCS_BUCKET_NAME }}