mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(release): Simple changes so site push code almost ready
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "ionic",
|
||||
"private": false,
|
||||
"version": "0.9.24-alpha-7322-13809-13288",
|
||||
"version": "0.9.24-alpha-7322-13809-13288-6754-12323",
|
||||
"codename": "peleguin",
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.1",
|
||||
|
||||
@@ -3,10 +3,7 @@ echo "#################################"
|
||||
echo "#### Update Site #################"
|
||||
echo "#################################"
|
||||
|
||||
# Version label is "nightly" or a version number
|
||||
ARG_DEFS=(
|
||||
"--version-label=(.*)"
|
||||
)
|
||||
ARG_DEFS=( )
|
||||
|
||||
function init {
|
||||
PROJECT_DIR=$SCRIPT_DIR/../..
|
||||
@@ -29,7 +26,7 @@ function run {
|
||||
cd $IONIC_SITE_DIR
|
||||
|
||||
$(replaceInFile "_config.yml" "latest_download:.*" "latest_download: http://code.ionicframework.com/$VERSION/ionic-v$VERSION.zip")
|
||||
$(replaceInFile "_config.yml" "latest_version:.*" "latest_version: $VERSION \"$VERSION_LABEL\"")
|
||||
$(replaceInFile "_config.yml" "latest_version:.*" "latest_version: $VERSION \"$CODENAME\"")
|
||||
$(replaceInFile "_config.yml" "latest_release_date:.*" "latest_release_date: $DATE")
|
||||
|
||||
git add -A
|
||||
|
||||
@@ -53,7 +53,7 @@ function run {
|
||||
# If latest commit message starts with 'chore(release):' it's a release
|
||||
COMMIT_MESSAGE=$(git log --format=%B -n 1 $TRAVIS_COMMIT | head -c 15)
|
||||
|
||||
if [[ "$COMMIT_MESSAGE" == "chore(release):" ]]; then
|
||||
if [[ "$COMMIT_MESSAGE" == "chore(release)" ]]; then
|
||||
IS_RELEASE=true
|
||||
echo "##################################"
|
||||
echo "# Pushing out a new full release #"
|
||||
@@ -82,7 +82,7 @@ function run {
|
||||
|
||||
if [[ $IS_RELEASE == "true" ]]; then
|
||||
./scripts/seed/publish.sh
|
||||
./scripts/site/publish.sh --version-label="$VERSION_LABEL"
|
||||
./scripts/site/publish.sh
|
||||
fi
|
||||
|
||||
echo "--- Build Complete! ----"
|
||||
|
||||
Reference in New Issue
Block a user