Modify deploy to publish on the cloud object storage

This commit is contained in:
Salvador de la Puente González 2019-11-06 09:01:35 +01:00
parent efcaf3e85a
commit d93e814a68
4 changed files with 19 additions and 7 deletions

View File

@ -5,13 +5,9 @@ before_script:
- npm run lint
before_deploy:
- npm run generate
- cd deploy
deploy:
provider: pages
local_dir: public
skip_cleanup: true
github_token: $GITHUB_TOKEN
keep_history: true
fqdn: community.qiskit.org
provider: script
script: bash deploy_cos.sh
on:
branch: master

15
deploy/deploy_cos.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
#install rclone
curl https://downloads.rclone.org/rclone-current-linux-amd64.deb -o rclone.deb
sudo apt-get install -y ./rclone.deb
CONFIG_PATH=$(rclone config file | tail -1)
# Decrypt config
openssl aes-256-cbc -K $encrypted_rclone_key -iv $encrypted_rclone_iv -in rclone.conf.enc -out $CONFIG_PATH -d
git clone --depth=1 https://github.com/Qiskit/qiskit-terra.git
cp -r qiskit-terra/qiskit/schemas ../public/.
rclone sync --exclude 'documentation/**' ../public IBMCOS:qiskit-org-website

BIN
deploy/rclone.conf.enc Normal file

Binary file not shown.

View File

@ -0,0 +1 @@
google-site-verification: googlefd7c7bd12b94442f.html