diff --git a/scripts/travis/ci.sh b/scripts/travis/ci.sh index c9e8c52e33..c4a75a296b 100755 --- a/scripts/travis/ci.sh +++ b/scripts/travis/ci.sh @@ -97,7 +97,9 @@ function run { ./scripts/seed/publish.sh --version="$VERSION" ./scripts/app-base/publish.sh --version="$VERSION" - gulp release-tweet release-irc + ./scripts/travis/release-new-version.sh \ + --action="tweetAndIrc" + --version=$VERSION else ./scripts/site/publish.sh --action="clone" diff --git a/scripts/travis/release-new-version.sh b/scripts/travis/release-new-version.sh index 773afdca69..86d6401335 100755 --- a/scripts/travis/release-new-version.sh +++ b/scripts/travis/release-new-version.sh @@ -65,7 +65,7 @@ function github { sed -e '/'"$OLD_VERSION"'/,$d' $PROJECT_DIR/CHANGELOG.md | tail -n +3 \ > $TMP_DIR/CHANGELOG_NEW.md - CODENAME=$(readJsonProp "$PROJECT_DIR/package.json" "codename") + CODENAME=$(readJsonProp "$IONIC_DIR/package.json" "codename") # we have to get all releases, then find the one corresponding to this new tag curl https://api.github.com/repos/$GH_ORG/ionic/releases > $TMP_DIR/releases.json @@ -102,7 +102,7 @@ function github { } function discourse { - CODENAME=$(readJsonProp "$PROJECT_DIR/package.json" "codename") + CODENAME=$(readJsonProp "$IONIC_DIR/package.json" "codename") # Get only newest things in changelog - sed until previous version is hit sed -e '/'"$OLD_VERSION"'/,$d' $PROJECT_DIR/CHANGELOG.md | tail -n +3 \ > $TMP_DIR/NEW_CHANGELOG.md @@ -141,4 +141,9 @@ function discourse { git push -q origin master } +function tweetAndIrc { + cd $IONIC_DIR + gulp release-tweet release-irc +} + source $(dirname $0)/../utils.inc