Skip to content

Commit

Permalink
deploy documentation in qiskit.org/ecosystem (qiskit-community#581)
Browse files Browse the repository at this point in the history
* Update deploy_documentation.sh

* Update tools/deploy_documentation.sh

Co-authored-by: Anton Dekusar <[email protected]>

* Update tools/deploy_documentation.sh

Co-authored-by: Anton Dekusar <[email protected]>

---------

Co-authored-by: Anton Dekusar <[email protected]>
Co-authored-by: Steve Wood <[email protected]>
  • Loading branch information
3 people authored Mar 23, 2023
1 parent ffe2b6f commit 55baa9d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions tools/deploy_documentation.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# This code is part of Qiskit.
#
# (C) Copyright IBM 2018, 2021.
# (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
Expand All @@ -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 the qiskit.org/ecosystem and qiskit.org/documentation
set -e

curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb
Expand All @@ -23,7 +23,10 @@ RCLONE_CONFIG_PATH=$(rclone config file | tail -1)
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"
echo "Pushing built docs to qiskit.org/ecosystem"
rclone sync --progress --exclude locale/** ./docs/_build/html IBMCOS:qiskit-org-web-resources/ecosystem/machine-learning

echo "Pushing built docs to qiskit.org/documentation"
rclone sync --progress --exclude locale/** ./docs/_build/html IBMCOS:qiskit-org-web-resources/documentation/machine-learning

0 comments on commit 55baa9d

Please sign in to comment.