waytrue17 commented on a change in pull request #19244:
URL: https://github.com/apache/incubator-mxnet/pull/19244#discussion_r497662312
##########
File path: ci/docker/runtime_functions.sh
##########
@@ -1922,6 +1922,27 @@ build_docs_beta() {
popd
}
+push_docs() {
+ folder_name=$1
+ set -ex
+ pip3 install --user awscli
+ export PATH=~/.local/bin:$PATH
+ pushd docs/_build
+ wget
https://mxnet-website-static-artifacts.s3.us-east-2.amazonaws.com/versions.zip
&& unzip versions.zip && rm versions.zip
+ mkdir $folder_name && tar -xzf full_website.tgz -C $folder_name
--strip-components 1
+ # check if folder_name already exists in versions
+ pushd versions
+ if [ -d "$folder_name" ]; then
+ echo "Folder $folder_name already exists in versions. Please double
check the FOLDER_NAME variable in Jenkens pipeline"
+ exit 1
+ fi
+ popd
+ mv $folder_name versions
+ zip -r9 versions.zip versions/.
+ aws s3 cp versions.zip s3://mxnet-website-static-artifacts --acl
bucket-owner-full-control
Review comment:
I passed the `public-read` to the s3 bucket to make the artifacts public.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]