Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(site) Add v3 docs to deployment #1992

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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