From 6906329715345f892aa47a9c762d4b2e1fc88b01 Mon Sep 17 00:00:00 2001 From: Fernando Montoya Date: Fri, 6 Apr 2018 19:47:48 +0200 Subject: [PATCH] feat(site) Add v3 docs to deployment --- src/scripts/deploy.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/scripts/deploy.sh b/src/scripts/deploy.sh index 7664e2dbad52..f951351169c8 100644 --- a/src/scripts/deploy.sh +++ b/src/scripts/deploy.sh @@ -19,6 +19,8 @@ SSH_REPO=${REPO/https:\/\/github.com\//git@github.com:} # Run our build npm run build +cp -r build/ v4/ # Temporaly copy docs to v4 + # Set some git options git config --global user.name "Travis CI" git config --global user.email "ci@travis-ci.org" @@ -34,5 +36,13 @@ chmod 600 src/scripts/deploy_key eval `ssh-agent -s` ssh-add src/scripts/deploy_key +git checkout fix/v3-docs +npm run build +cp -r build/ v3/ + +rm -rf build/ # Clean v3 docs +cp -r v4/ build/ # Copy v4 docs to `build` root +cp -r v3/ build/v3 # Copy v3 docs to `build/v3` + # Now that we're all set up, we can deploy npm run deploy