mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(travis): use new codename for release tweet, discourse, github
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user