Skip to content

Commit

Permalink
chore(build): enable auto deploy to gh-pages (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
adrian-bobev committed Feb 12, 2019
1 parent 00b46a6 commit e7b8e4e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ script:
- yarn build
- yarn test

# deploy:
# provider: script
# skip-cleanup: true
# script: bash deploy/deploy.sh
# on:
# branch: master
deploy:
provider: script
skip-cleanup: true
script: bash deploy/deploy.sh
on:
branch: master
2 changes: 1 addition & 1 deletion deploy/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ rm -rf gh-pages/* || exit 0

# Run the build again so rollup can generate the correct public path urls
cd $TRAVIS_BUILD_DIR
DEPLOY_PUBLIC_PATH=/ui5-webcomponents yarn build
DEPLOY_PUBLIC_PATH=https://sap.github.io/ui5-webcomponents yarn build

# Move master build folder to gh-pages folder
cp -Rf $TRAVIS_BUILD_DIR/packages/playground/dist/* gh-pages
Expand Down
Binary file modified deploy/deploy_key.enc
Binary file not shown.

0 comments on commit e7b8e4e

Please sign in to comment.