Skip to content

Commit

Permalink
remove option to preview PR pages
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeddy committed Oct 23, 2018
1 parent 3f29bfb commit 81a36e6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 52 deletions.
21 changes: 0 additions & 21 deletions scripts/buildpages.js

This file was deleted.

22 changes: 0 additions & 22 deletions scripts/deploypages.js

This file was deleted.

12 changes: 3 additions & 9 deletions scripts/stagepages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,12 @@
set -e
set -v

if [ "$TRAVIS_PULL_REQUEST" != false ]; then
branch="pull-$TRAVIS_PULL_REQUEST"
else
branch=$(echo "$TRAVIS_BRANCH" | awk '{print tolower($0)}')
fi


if [ "$TRAVIS_BRANCH" == "master" ] || [ "$TRAVIS_BRANCH" == "develop" ]; then
if [ "$TRAVIS_BRANCH" == "develop" ]; then
cp docs/html5/index.html docs/
cp openapi/workflow_execution_service.swagger.yaml ./swagger.yaml
cp -R web_deploy/* .
elif [ "$TRAVIS_BRANCH" != "gh-pages" ]; then
elif [ "$TRAVIS_BRANCH" != "master" ] && [ "$TRAVIS_BRANCH" != "gh-pages" ]; then
branch=$(echo "$TRAVIS_BRANCH" | awk '{print tolower($0)}')
branchpath="preview/$branch"
mkdir -p "$branchpath/docs"
cp docs/html5/index.html "$branchpath/docs/"
Expand Down

0 comments on commit 81a36e6

Please sign in to comment.