Check for DO_NOT_PUBLISH_TAR before uploading to CI (#13700)

This commit is contained in:
sakridge
2020-11-20 08:27:34 -08:00
committed by GitHub
parent 8808a74593
commit e4216c3ff8
3 changed files with 24 additions and 37 deletions

View File

@@ -16,3 +16,16 @@ upload-ci-artifact() {
fi
}
upload-s3-artifact() {
echo "--- artifact: $1 to $2"
(
set -x
docker run \
--rm \
--env AWS_ACCESS_KEY_ID \
--env AWS_SECRET_ACCESS_KEY \
--volume "$PWD:/solana" \
eremite/aws-cli:2018.12.18 \
/usr/bin/s3cmd --acl-public put "$1" "$2"
)
}