mirror of https://github.com/Qiskit/qiskit.org.git
Modify deploy to publish on the cloud object storage
This commit is contained in:
parent
efcaf3e85a
commit
d93e814a68
10
.travis.yml
10
.travis.yml
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
google-site-verification: googlefd7c7bd12b94442f.html
|
Loading…
Reference in New Issue