forked from angular/material
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbower-material-release.sh
executable file
·44 lines (32 loc) · 1 KB
/
bower-material-release.sh
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
#!/bin/bash
ARG_DEFS=(
"--version=(.*)"
)
function run {
cd ../
echo "-- Building release..."
rm -rf dist
gulp build --release --version=$VERSION
gulp build-all-modules --release --mode=default --version=$VERSION
gulp build-all-modules --release --mode=closure --version=$VERSION
rm -rf dist/demos
echo "-- Cloning bower-material..."
rm -rf bower-material
git clone https://angular:[email protected]/angular/bower-material \
bower-material --depth=2
echo "-- Copying in build files..."
cp -Rf dist/* bower-material/
cd bower-material
echo "-- Committing and tagging..."
replaceJsonProp "bower.json" "version" "$VERSION"
replaceJsonProp "package.json" "version" "$VERSION"
git add -A
git commit -am "release: version $VERSION"
git tag -f v$VERSION
echo "-- Pushing to bower-material..."
git push -q origin master
git push -q origin v$VERSION
echo "-- Version $VERSION pushed successfully to angular/bower-material!"
cd ../
}
source $(dirname $0)/utils.inc