From 6995d68e056c51e2445f64e97e3fee58c28a6f25 Mon Sep 17 00:00:00 2001 From: Luciano Bello Date: Tue, 21 Mar 2023 10:39:07 +0100 Subject: [PATCH 1/2] Update deploy_documentation.sh --- tools/deploy_documentation.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tools/deploy_documentation.sh b/tools/deploy_documentation.sh index b3524535e..44a93b9e1 100755 --- a/tools/deploy_documentation.sh +++ b/tools/deploy_documentation.sh @@ -2,7 +2,7 @@ # This code is part of Qiskit. # -# (C) Copyright IBM 2018, 2019. +# (C) Copyright IBM 2018, 2023. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory @@ -12,7 +12,7 @@ # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. -# Script for pushing the documentation to the qiskit.org repository. +# Script for pushing the documentation to qiskit.org/ecosystem. set -e curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb @@ -31,11 +31,13 @@ IFS='.' read -ra VERSION <<< "$CURRENT_TAG" STABLE_VERSION=${VERSION[0]}.${VERSION[1]} -# Push to qiskit.org website +# Push to qiskit.org/ecosystem openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in tools/rclone.conf.enc -out $RCLONE_CONFIG_PATH -d -echo "Pushing built docs to website" +echo "Pushing built docs to qiskit.org/ecosystem" rclone sync --progress --exclude-from ./tools/other-builds.txt ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/retworkx rclone sync --progress --exclude-from ./tools/other-builds.txt ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/rustworkx +rclone sync --progress --exclude-from ./tools/other-builds.txt ./docs/build/html IBMCOS:qiskit-org-web-resources/ecosystem/rustworkx echo "Pushing built docs to stable site" rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/retworkx/stable/"$STABLE_VERSION" -rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/rustworkx/stable/"$STABLE_VERSION" \ No newline at end of file +rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/rustworkx/stable/"$STABLE_VERSION" +rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/ecosystem/rustworkx/stable/"$STABLE_VERSION" From 3d810808909b41956afb2864b9c84526ba989ed8 Mon Sep 17 00:00:00 2001 From: Luciano Bello Date: Tue, 21 Mar 2023 10:43:06 +0100 Subject: [PATCH 2/2] tools/deploy_documentation_dev.sh --- tools/deploy_documentation_dev.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/deploy_documentation_dev.sh b/tools/deploy_documentation_dev.sh index 35bc9d451..1b29876bd 100755 --- a/tools/deploy_documentation_dev.sh +++ b/tools/deploy_documentation_dev.sh @@ -2,7 +2,7 @@ # This code is part of Qiskit. # -# (C) Copyright IBM 2018, 2019. +# (C) Copyright IBM 2018, 2023. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory @@ -12,7 +12,7 @@ # copyright notice, and modified files need to carry a notice indicating # that they have been altered from the originals. -# Script for pushing the documentation to the qiskit.org repository. +# Script for pushing the documentation to qiskit.org/ecosystem set -e curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb @@ -26,8 +26,9 @@ RETWORKX_DEV_DOCS=1 tox -edocs echo "show current dir: " pwd -# Push to qiskit.org website +# Push to qiskit.org/ecosystem openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in tools/rclone.conf.enc -out $RCLONE_CONFIG_PATH -d echo "Pushing built docs to website" rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/retworkx/dev rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/documentation/rustworkx/dev +rclone sync --progress ./docs/build/html IBMCOS:qiskit-org-web-resources/ecosystem/rustworkx/dev