Only deploy master to production site

This commit is contained in:
Zakary Timson 2019-04-11 22:00:11 -04:00 committed by GitHub
parent 799f6b8001
commit f3b6d28623
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,28 +56,6 @@ jobs:
- run:
name: Deploy
command: gsutil cp -r dist/ZaksCode/* gs://staging.zakscode.com
deploy-prod:
docker:
- image: google/cloud-sdk:latest
working_directory: ~/repo
steps:
- checkout
- attach_workspace:
at: ./
- run:
name: Authenticate GCP
command: |
echo $GCLOUD_SERVICE_KEY > key.json
gcloud auth activate-service-account --key-file key.json
- run:
name: Depoly
command: gsutil cp -r dist/ZaksCode/* gs://www.zakscode.com
workflows:
@ -92,9 +70,3 @@ workflows:
filters:
branches:
only: master
- deploy-prod:
requires:
- build
filters:
branches:
only: production