forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·48 lines (35 loc) · 1.17 KB
/
deploy.sh
File metadata and controls
executable file
·48 lines (35 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
echo "##### "
echo "##### ci/deploy.sh"
echo "#####"
function run {
cd ../..
export IONIC_DIR=$PWD
# If --verbose is set on this script, export it to all the scripts
export VERBOSE=$VERBOSE
git config --global user.name 'Ionitron'
git config --global user.email hi@ionicframework.com
git show $CIRCLE_SHA1~1:package.json > .package.tmp.json
OLD_VERSION=$(readJsonProp ".package.tmp.json" "version")
VERSION=$(readJsonProp "package.json" "version")
if [[ "$OLD_VERSION" != "$VERSION" ]]; then
#./scripts/bump/release.sh --new-version="$VERSION"
IS_RELEASE=true
VERSION_NAME=$(readJsonProp "package.json" "version")
else
#./scripts/bump/nightly.sh --build-number=$BUILD_NUMBER
IS_RELEASE=false
VERSION_NAME="nightly"
fi
export IS_RELEASE=$IS_RELEASE
export OLD_VERSION=$OLD_VERSION
# Install gulp globally for site deploy script.
# npm install -g gulp
if [[ "$IS_RELEASE" == "true" ]]; then
echo "RELEASE DETECTED!"
# TODO bump version number, github release, changelog, CDN, docs nav update
fi
# Update docs
./scripts/docs/deploy.sh --version-name="$VERSION_NAME"
}
source $(dirname $0)/../utils.sh.inc