-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrelease.sh
executable file
·57 lines (52 loc) · 1.4 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
echo "Creating $1 release for QMiner"
# create local clone
git clone [email protected]:qminer/qminer.git qminer_master
# install qminer and its dependancies
cd qminer_master
npm install --production
# update package-lock
git add package-lock.json
git commit -m "Updated package lock"
# update version
npm version $1 -m "New release: %s"
# push updated version and master to main repo
git push
cd ..
# create local clone
git clone [email protected]:qminer/qminer.git qminer_master_docs
# install qminer and its dependancies
cd qminer_master_docs
npm install
# update documentation
cd tools
./genNodeDoc.sh
cd ..
# revert package-lock.json
git checkout package-lock.json
# commint new docs
git status
git commit -a -m "Documentation update"
# push updated version and master to main repo
git push
cd ..
# update CI branch
git config --global merge.ours.driver true
git clone [email protected]:qminer/qminer.git qminer_ci
cd qminer_ci
git checkout -b ci_matrix origin/ci_matrix
git merge master -m "[publish binary]"
git push origin ci_matrix:ci_matrix
cd ..
# update OSX binaries
git config --global merge.ours.driver true
git clone [email protected]:qminer/qminer.git qminer_osx
cd qminer_osx
git checkout -b osx-binaries origin/osx-binaries
git merge master -m "[publish binary]"
git push origin osx-binaries:osx-binaries
cd ..
# Wait for one hour and publish to NPM
echo "Waiting for stuff to build"
sleep 3600
cd qminer_master
npm publish