Skip to content

Commit

Permalink
build: resolve the correct patch for deployment (#455)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuvalke committed Jun 6, 2021
1 parent 842405f commit f15f16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/travis.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/bash
# https://docs.travis-ci.com/user/customizing-the-build/#Implementing-Complex-Build-Steps
set -ev
git checkout master

if [[ "$TRAVIS_BRANCH" = "master" ]] && [[ "$TRAVIS_EVENT_TYPE" != "pull_request" ]] && [[ ! "$TRAVIS_COMMIT_MESSAGE" =~ ^(chore).*(update dist)$ ]] && [[ ! "$TRAVIS_COMMIT_MESSAGE" =~ ^chore\(release\) ]]; then
echo "Prepare Canary"
git checkout master
yarn upgrade @playkit-js/playkit-js@canary
yarn upgrade @playkit-js/playkit-js-dash@canary
yarn upgrade @playkit-js/playkit-js-hls@canary
Expand Down Expand Up @@ -41,7 +41,7 @@ elif [ "${TRAVIS_MODE}" = "release" ] || [ "${TRAVIS_MODE}" = "releaseCanary" ];
echo "Finish building"
git push https://$GH_TOKEN@github.com/kaltura/kaltura-player-js "master" > /dev/null 2>&1
echo "Push Build to origin"
bash ./after_deploy.sh "$JENKINS_CANARY_TOKEN"
bash ./scripts/after_deploy.sh "$JENKINS_CANARY_TOKEN"
else
echo "Run conventional-github-releaser"
#ignore error to make sure release won't get stuck
Expand Down

0 comments on commit f15f16d

Please sign in to comment.