From 597de041565f6f754b32067805ad6407d76bd9e4 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:01:00 +0000 Subject: [PATCH] Deploy docs to GitHub Pages (backport #115) (#123) Co-authored-by: Arnau Casau <47946624+arnaucasau@users.noreply.github.com> --- .github/workflows/deploy-docs.yml | 11 +++++++---- tools/deploy_documentation.sh | 29 ----------------------------- tools/rclone.conf.enc | Bin 304 -> 0 bytes 3 files changed, 7 insertions(+), 33 deletions(-) delete mode 100755 tools/deploy_documentation.sh delete mode 100644 tools/rclone.conf.enc diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index ef0a7e6e..cbcf05bb 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -42,15 +42,18 @@ jobs: pip install jupyter qiskit-terra[visualization] sudo apt-get install -y pandoc graphviz shell: bash - - name: Build and publish + - name: Build docs env: - encrypted_rclone_key: ${{ secrets.encrypted_rclone_key }} - encrypted_rclone_iv: ${{ secrets.encrypted_rclone_iv }} QISKIT_PARALLEL: False QISKIT_DOCS_BUILD_TUTORIALS: 'always' run: | echo "earliest_version: 0.1.0" >> releasenotes/config.yaml tools/ignore_untagged_notes.sh make html - tools/deploy_documentation.sh shell: bash + - 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/ diff --git a/tools/deploy_documentation.sh b/tools/deploy_documentation.sh deleted file mode 100755 index d555c715..00000000 --- a/tools/deploy_documentation.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/bash - -# This code is part of a Qiskit project. -# -# (C) Copyright IBM 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) - -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 qiskit.org/ecosystem" -rclone sync --progress --exclude locale/** ./docs/_build/html IBMCOS:qiskit-org-web-resources/ecosystem/algorithms diff --git a/tools/rclone.conf.enc b/tools/rclone.conf.enc deleted file mode 100644 index 985bd728abc0a83d8ea98cd4d9561b7fa124842f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 304 zcmV-00nh$7&RTYTNLa46ND6UrOuMoPNp}L^N21;+KWICI2ddxLf?x*g*GAzexAhvW z5rTO-?<OG~RuXVa2g87wxVmhyQGkQWEi!e0Qt3dY@J9-iZ=g~a#Wfbq7ea)@jh$`w zgHBr6kb!Xz5Wh|$-Ubm)kCqGV2poP$o@u31BFp<47c%_^)g^EP?Uc5`)D{PC;5H%# z`4-4<oA~OM0Z>xi4$c>vaY~!DfD~lI0H5)o5;H>qj7M~)ZT{14Fvc91%J)Ycl~B`S zR;dTAK}Qz7!C#ExhwZKgVKh_&DPch2pvl7`Df`TB7^fDm2w+?}@Ltb_s9A^-JfyD- zcV@+wP8bfhSO=k!OfNS+tVO*B2xkEIky>2YRz;z0Ar#-=dP|4$ar~If5$=F}D=bc3 C!HCcR