Skip to content

Commit

Permalink
Deploy with qfe tag
Browse files Browse the repository at this point in the history
  • Loading branch information
compulim committed Jan 10, 2019
1 parent f938008 commit ebe82a9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@ deploy:
on:
branch: master

- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
on:
branch: qfe

- provider: script
script: bash scripts/deploy_cdn
skip_cleanup: true
Expand All @@ -59,6 +65,12 @@ deploy:
on:
branch: master

- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
on:
branch: qfe

- provider: script
script: bash scripts/lerna_publish
skip_cleanup: true
Expand Down
7 changes: 7 additions & 0 deletions scripts/deploy_cdn
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ then
# Upload to /master/
~/blobxfer upload --local-path $TRAVIS_BUILD_DIR/packages/bundle/dist --remote-path $PACKAGE_NAME/master --storage-account $CDN_BLOB_ACCOUNT --storage-account-key $CDN_BLOB_KEY
fi

# If on "qfe" branch, deploy to "qfe" tag too
if [ "$TRAVIS_BRANCH" = "qfe" ]
then
# Upload to /qfe/
~/blobxfer upload --local-path $TRAVIS_BUILD_DIR/packages/bundle/dist --remote-path $PACKAGE_NAME/qfe --storage-account $CDN_BLOB_ACCOUNT --storage-account-key $CDN_BLOB_KEY
fi
15 changes: 15 additions & 0 deletions scripts/lerna_publish
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,18 @@ then

cd ../..
fi

# If on "qfe" branch, deploy to "qfe" tag
if [ "$TRAVIS_BRANCH" = "qfe" ]
then
cd packages/core
npm publish --tag qfe

cd ../component
npm publish --tag qfe

cd ../bundle
npm publish --tag qfe

cd ../..
fi

0 comments on commit ebe82a9

Please sign in to comment.