mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
chore(): update deploy scripts
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
function init {
|
||||
RELEASE_DIR=$HOME/ionic-release
|
||||
../clone/clone.sh --repository="driftyco/ionic" \
|
||||
--depth="1" \
|
||||
--directory="$RELEASE_DIR" \
|
||||
--branch="master"
|
||||
}
|
||||
|
||||
@@ -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!"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user