mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-21 22:58:24 +00:00
parent
4be69a5fc7
commit
ea624ae6e3
@ -15,5 +15,6 @@ for script in scripts/*.py ; do
|
||||
"${script}" > "${output}"
|
||||
done
|
||||
|
||||
rm -rf ./public
|
||||
cd src
|
||||
hugo
|
||||
|
@ -11,7 +11,7 @@ set -o pipefail
|
||||
# Only upload if we have defined credentials - we only have these defined for
|
||||
# trusted commits (i.e. not PRs).
|
||||
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 \
|
||||
--paths "/master/*"
|
||||
fi
|
||||
|
@ -7,7 +7,7 @@ set -o nounset
|
||||
|
||||
aws configure set preview.cloudfront true
|
||||
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 \
|
||||
cloudfront create-invalidation --distribution-id E1TH3USJHFQZ5Q \
|
||||
--paths "/stable/*"
|
||||
|
Loading…
Reference in New Issue
Block a user