Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (13 sloc) 636 Bytes
#!/usr/bin/env bash
# Deployment of the website consists of sync'ing to an S3 bucket
# The master branch is considered the production copy and can be viewed at
# The test branch is to stage and test updates and can be viewed at
pip install --user awscli; export PATH=$PATH:$HOME/.local/bin
if [ "$TRAVIS_BRANCH" == "master" ]; then
aws s3 sync _book/ s3://hassiumlabs-website/production/labs/lab-001-electronic-publishing/ --delete
if [ "$TRAVIS_BRANCH" == "test" ]; then
aws s3 sync _book/ s3://hassiumlabs-website/test/labs/lab-001-electronic-publishing/ --delete