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 141103e
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/upload-to-gcs-bucket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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 }}
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 141103e

Please sign in to comment.