parent
4be69a5fc7
commit
ea624ae6e3
|
@ -15,5 +15,6 @@ for script in scripts/*.py ; do
|
||||||
"${script}" > "${output}"
|
"${script}" > "${output}"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
rm -rf ./public
|
||||||
cd src
|
cd src
|
||||||
hugo
|
hugo
|
||||||
|
|
|
@ -11,7 +11,7 @@ set -o pipefail
|
||||||
# Only upload if we have defined credentials - we only have these defined for
|
# Only upload if we have defined credentials - we only have these defined for
|
||||||
# trusted commits (i.e. not PRs).
|
# trusted commits (i.e. not PRs).
|
||||||
if [[ ! -z "${AWS_ACCESS_KEY_ID}" && $GITHUB_REF == "refs/heads/master" ]]; then
|
if [[ ! -z "${AWS_ACCESS_KEY_ID}" && $GITHUB_REF == "refs/heads/master" ]]; then
|
||||||
aws s3 sync --acl public-read ./public s3://docs.mitmproxy.org/master
|
aws s3 sync --delete --acl public-read ./public s3://docs.mitmproxy.org/master
|
||||||
aws cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
aws cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
||||||
--paths "/master/*"
|
--paths "/master/*"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -7,7 +7,7 @@ set -o nounset
|
||||||
|
|
||||||
aws configure set preview.cloudfront true
|
aws configure set preview.cloudfront true
|
||||||
aws --profile mitmproxy \
|
aws --profile mitmproxy \
|
||||||
s3 sync --acl public-read ./public s3://docs.mitmproxy.org/stable
|
s3 sync --delete --acl public-read ./public s3://docs.mitmproxy.org/stable
|
||||||
aws --profile mitmproxy \
|
aws --profile mitmproxy \
|
||||||
cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
||||||
--paths "/stable/*"
|
--paths "/stable/*"
|
||||||
|
|
Loading…
Reference in New Issue