Skip to content

Instantly share code, notes, and snippets.

@wichopy
Created November 21, 2019 00:48
Show Gist options
  • Save wichopy/4ba4cb450dc9ac56c5916bb26f5b5fc9 to your computer and use it in GitHub Desktop.
Save wichopy/4ba4cb450dc9ac56c5916bb26f5b5fc9 to your computer and use it in GitHub Desktop.
Github action to deploy to a google storage bucket.
name: DEPLOY-ON-PUSH
on: [push]
jobs:
deploy:
name: Deploy new build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: GCloud Auth
uses: actions/gcloud/auth@master
env:
GCLOUD_AUTH: ${{ secrets.GCLOUD_AUTH }} # I am a base64 encoded service-account.json
- name: Deploy
uses: vsoch/gcloud-actions/gsutil@add/gsutil
with:
args: -m cp -a public-read -r . gs://iam.a.bucket.com/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment