Add upload to gcs bucket workflow #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |