chore(travis): use new codename for release tweet, discourse, github

This commit is contained in:
Andrew Joslin
2014-05-14 11:09:06 -06:00
parent 7b975bfc84
commit c72ab889a2
2 changed files with 10 additions and 3 deletions

View File

@@ -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"

View File

@@ -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