mirror of https://github.com/Qiskit/qiskit-aer.git
Deploy docs to GitHub Pages (#2018)
Co-authored-by: Jun Doi <doichan@jp.ibm.com>
This commit is contained in:
parent
e6aaf03060
commit
11e8f78bb5
|
@ -21,10 +21,13 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
pip install -U virtualenv setuptools wheel tox
|
||||
sudo apt-get install graphviz pandoc build-essential libopenblas-dev
|
||||
- name: Build and publish
|
||||
- name: Build docs
|
||||
env:
|
||||
encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }}
|
||||
encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }}
|
||||
QISKIT_DOCS_BUILD_TUTORIALS: 'always'
|
||||
run: |
|
||||
tools/deploy_documentation.sh
|
||||
run: tox -edocs
|
||||
- name: Bypass Jekyll Processing # Necessary for setting the correct css path
|
||||
run: touch docs/_build/html/.nojekyll
|
||||
- name: Deploy
|
||||
uses: JamesIves/github-pages-deploy-action@v4
|
||||
with:
|
||||
folder: docs/_build/html/
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
# This code is part of Qiskit.
|
||||
#
|
||||
# (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
|
||||
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
|
||||
#
|
||||
# Any modifications or derivative works of this code must retain this
|
||||
# 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 qiskit.org/ecosystem.
|
||||
set -e
|
||||
|
||||
curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb
|
||||
sudo apt-get install -y ./rclone.deb
|
||||
|
||||
RCLONE_CONFIG_PATH=$(rclone config file | tail -1)
|
||||
|
||||
# Build the documentation.
|
||||
tox -edocs
|
||||
|
||||
echo "show current dir: "
|
||||
pwd
|
||||
|
||||
# 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/ecosystem/aer
|
Binary file not shown.
Loading…
Reference in New Issue