chore(): update deploy scripts

This commit is contained in:
Andrew
2014-08-06 12:48:11 -06:00
parent f2de061a08
commit 1c27df3925
7 changed files with 11 additions and 4 deletions

View File

@@ -12,6 +12,7 @@ function init {
APPBASE_LIB_DIR=$APPBASE_DIR/www/lib/ionic
../clone/clone.sh --repository="driftyco/ionic-app-base" \
--depth="1" \
--directory="$APPBASE_DIR" \
--branch="master"
}

View File

@@ -11,6 +11,7 @@ function init {
BOWER_DIR=$HOME/ionic-bower
../clone/clone.sh --repository="driftyco/ionic-bower" \
--depth="1" \
--directory="$BOWER_DIR" \
--branch="master"
}

View File

@@ -11,6 +11,7 @@ echo "#####"
function init {
CDN_DIR=$HOME/ionic-code
../clone/clone.sh --repository="driftyco/ionic-code" \
--depth="1" \
--directory="$CDN_DIR" \
--branch="gh-pages"
}

View File

@@ -13,9 +13,11 @@ function run {
echo "-- Cloning $REPOSITORY#$BRANCH to $DIRECTORY..."
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY \
--depth=${DEPTH:-1} \
--branch=${BRANCH:-master}
ARGS="--branch=${BRANCH:-master}"
if [[ "$DEPTH" != "" ]]; then
ARGS="$ARGS --depth=$DEPTH"
fi
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY $ARGS
}
source $(dirname $0)/../utils.inc

View File

@@ -12,6 +12,7 @@ function init {
DEMO_DIR=$HOME/ionic-demo
../clone/clone.sh --repository="driftyco/ionic-demo" \
--depth="1" \
--directory="$DEMO_DIR" \
--branch="gh-pages"
}

View File

@@ -3,6 +3,7 @@
function init {
RELEASE_DIR=$HOME/ionic-release
../clone/clone.sh --repository="driftyco/ionic" \
--depth="1" \
--directory="$RELEASE_DIR" \
--branch="master"
}

View File

@@ -32,7 +32,7 @@ function run {
# git add -A
# git commit -am "release: $VERSION"
# git push -q origin master
./deploy.sh
source deploy.sh
echo "-- Published ionic-site config v$VERSION successfully!"
}