Created
November 21, 2019 00:48
-
-
Save wichopy/4ba4cb450dc9ac56c5916bb26f5b5fc9 to your computer and use it in GitHub Desktop.
Github action to deploy to a google storage bucket.
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: 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