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 b526716
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/upload-to-gcs-bucket.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Upload to GCS Bucket

on:
push:
branches:
- main

jobs:
upload:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup GCloud CLI
uses: google-github-actions/[email protected]
with:
project_id: ${{ secrets.GCP_PROJECT_ID }}
service_account_key: ${{ secrets.GCP_SA_KEY }}

- name: Upload to GCS
uses: google-github-actions/upload-cloud-storage@v1
with:
credentials: ${{ secrets.GCP_SA_KEY }}
path: ./gcs/store.json
destination: gs://${{ 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 b526716

Please sign in to comment.