language: node_js addons: apt: packages: - sshpass node_js: - 10 install: - npm install gitbook -g - npm install -g gitbook-cli --force - gitbook install script: - gitbook build after_success: - export SSHPASS=$DEPLOY_PASS # 直接将产物scp到vps太慢了,国外服务器传国内服务器。 #- sshpass -e scp -o stricthostkeychecking=no -r ./_book/* lijun@$www.css3.io:/home/lijun/www/ - sh deploy-to-github.sh #- sshpass -e scp -o stricthostkeychecking=no ./deploy-to-vps.sh lijun@www.css3.io:/home/lijun/ - sshpass -e ssh -o stricthostkeychecking=no lijun@www.css3.io "sh ./deploy-to-vps.sh" env: global: - secure: GwuvopZGKRimy7l0jJl3v9EhSFISdXQZIyH56wifFmjfIJriZBEtUTd5ggdPP/iORmueSsMKUZ+RJMtSHruf49Sz2f9RQd9bBg4A9No6PwP2RMxqxTJmjp/Uz43q8wDno+bpKY6gfWbLuBQb+6oJHMNDhdEVI2esSs3a+VIbnOiAHPfdabAjH2XE2i5Q5jjBmDi7bOJFE+sLTBUAWHE9rKWwt6vc78kJEaV6zqtAhvNoQgUz06hwgSL6WQWvePXh56Fv9qOIzQvQsf6V/8oSN9SyO75Gry1tuZCB4AWnaC9E+Yshi8XhNjdRRcwz4o3tqDQapjjHww8yB5rA+wpbZOzeM634Mi/wpe2nJK0raD0uQcQGRekONarlg3e1qoJ7p4SlNbjBwKbR34v9qYC4rz4JZqkVHM/k5VX2NNxnrKii4SAr7klsOKfjLGVTNJtrHDsgt9i+l+v8t3iBoD8umdQPvrgB5xXkrD57B/WlM/3Y8sNUyXtgSfCIyC48S6qywv/aG3X7zc3ACh0Om91LsdYvSiMuuCSK/5i3oYcSfyynlXnsjtTxv3zrNi8fcruuv/z9i91K1CdMSfKRLpJqnyYFGkMgQEo8C7YCGxvR24YaB4AMetgNYrWR4+bOsx/QLwAxtc6P8sLcL3e4KUF2SeGmJaxOJKRG0J8Ke3e1PWE=