Skip to content

Commit

Permalink
Add upload to gcs bucket workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
johnshaughnessy committed Nov 1, 2023
1 parent 85a1549 commit 7b07e1b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/upload-to-gcs-bucket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
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: 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 }}
3 changes: 3 additions & 0 deletions gcs/store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"this is a": "test"
}

0 comments on commit 7b07e1b

Please sign in to comment.