diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2020-04-11 12:25:56 +0200 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2020-04-11 12:25:56 +0200 |
commit | 55527c00eb35bf3b07b361363fd8ca2961afc8ba (patch) | |
tree | 4d9067ff2bcfd921dcb24852b522537f948e6801 /docs/upload-archive.sh | |
parent | 5ea75a1a8176f764429fb45875626b1b7ef6644c (diff) | |
download | mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.gz mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.tar.bz2 mitmproxy-55527c00eb35bf3b07b361363fd8ca2961afc8ba.zip |
docs: rename docs scripts and improve template
Diffstat (limited to 'docs/upload-archive.sh')
-rwxr-xr-x | docs/upload-archive.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/upload-archive.sh b/docs/upload-archive.sh new file mode 100755 index 00000000..e35345e9 --- /dev/null +++ b/docs/upload-archive.sh @@ -0,0 +1,22 @@ +#!/usr/bin/env bash + +set -o errexit +set -o pipefail +set -o nounset +# set -o xtrace + +if [[ $# -eq 0 ]] ; then + echo "Please supply a version, e.g. 'v3'" + exit 1 +fi + +# This script uploads docs to a specified archive version. + +SPATH="/archive/$1" + +aws configure set preview.cloudfront true +aws --profile mitmproxy \ + s3 sync --acl public-read ./public s3://docs.mitmproxy.org$SPATH +aws --profile mitmproxy \ + cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \ + --paths "$SPATH/*" |