Skip to content

Commit c72ab88

Browse files
committed
chore(travis): use new codename for release tweet, discourse, github
1 parent 7b975bf commit c72ab88

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

scripts/travis/ci.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ function run {
9797
./scripts/seed/publish.sh --version="$VERSION"
9898
./scripts/app-base/publish.sh --version="$VERSION"
9999

100-
gulp release-tweet release-irc
100+
./scripts/travis/release-new-version.sh \
101+
--action="tweetAndIrc"
102+
--version=$VERSION
101103
else
102104
./scripts/site/publish.sh --action="clone"
103105

scripts/travis/release-new-version.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function github {
6565
sed -e '/'"$OLD_VERSION"'/,$d' $PROJECT_DIR/CHANGELOG.md | tail -n +3 \
6666
> $TMP_DIR/CHANGELOG_NEW.md
6767

68-
CODENAME=$(readJsonProp "$PROJECT_DIR/package.json" "codename")
68+
CODENAME=$(readJsonProp "$IONIC_DIR/package.json" "codename")
6969

7070
# we have to get all releases, then find the one corresponding to this new tag
7171
curl https://api.github.com/repos/$GH_ORG/ionic/releases > $TMP_DIR/releases.json
@@ -102,7 +102,7 @@ function github {
102102
}
103103

104104
function discourse {
105-
CODENAME=$(readJsonProp "$PROJECT_DIR/package.json" "codename")
105+
CODENAME=$(readJsonProp "$IONIC_DIR/package.json" "codename")
106106
# Get only newest things in changelog - sed until previous version is hit
107107
sed -e '/'"$OLD_VERSION"'/,$d' $PROJECT_DIR/CHANGELOG.md | tail -n +3 \
108108
> $TMP_DIR/NEW_CHANGELOG.md
@@ -141,4 +141,9 @@ function discourse {
141141
git push -q origin master
142142
}
143143

144+
function tweetAndIrc {
145+
cd $IONIC_DIR
146+
gulp release-tweet release-irc
147+
}
148+
144149
source $(dirname $0)/../utils.inc

0 commit comments

Comments
 (0)