mirror of https://github.com/Qiskit/qiskit.org.git
17 lines
528 B
Bash
Executable File
17 lines
528 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
#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/ibm-quantum-schemas.git
|
|
cp -r ibm-quantum-schemas/schemas ../dist/.
|
|
|
|
rclone sync --exclude-from ./static-sites.txt ../dist IBMCOS:qiskit-org-web-resources
|