Skip to content

Instantly share code, notes, and snippets.

@AwolDes
Created December 23, 2017 06:22
Show Gist options
  • Select an option

  • Save AwolDes/37108d123cbdb5edd1ffb138980104fe to your computer and use it in GitHub Desktop.

Select an option

Save AwolDes/37108d123cbdb5edd1ffb138980104fe to your computer and use it in GitHub Desktop.
branches:
only:
- master
- staging
cache:
directories:
- node_modules
before_install: "./build-env.sh"
script:
- npm install
- npm run build
deploy:
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $PROD_BUCKET
skip_cleanup: true
acl: public_read
region: ap-southeast-2
local_dir: build
on:
branch: master
- provider: s3
access_key_id: $AWS_ACCESS_KEY_ID
secret_access_key: $AWS_SECRET_ACCESS_KEY
bucket: $STAGING_BUCKET
skip_cleanup: true
acl: public_read
region: ap-southeast-2
local_dir: build
on:
branch: staging
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment