Skip to content

Commit

Permalink
bin/upload-docs: add production option
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
jeffomatic authored and iampogo committed Oct 24, 2016
1 parent 747f36e commit f8b8118
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/upload-docs
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
#!/usr/bin/env bash
set -euf -o pipefail
set -ef -o pipefail

# TODO: when production is viable target, add commandline option to upload to
# the production bucket.
bucket="s3://chain-staging.chain.com"
if [ "$1" = "prod" ];
then
bucket="s3://chain.com"
fi

# Print output from generate-docs to stdout, but capture last line (the actual
# output directory) in a variable.
Expand Down

0 comments on commit f8b8118

Please sign in to comment.