File tree Expand file tree Collapse file tree 4 files changed +18
-28
lines changed Expand file tree Collapse file tree 4 files changed +18
-28
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Tags a release
4
- # so that travis can do the actual release.
3
+ # Untags a release.
5
4
6
5
echo " ###################################"
7
6
echo " ## Untag angular.js for a release #"
@@ -29,12 +28,12 @@ function init {
29
28
}
30
29
31
30
function prepare() {
32
- git tag -d " $TAG_NAME "
31
+ # no-op since publish does everything
33
32
}
34
33
35
34
function publish() {
36
35
# push the tag deletion to github
37
- git push origin " :refs/tags/ $TAG_NAME "
36
+ git push origin " :$TAG_NAME "
38
37
}
39
38
40
39
source $( dirname $0 ) /../utils.inc
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Script for updating the Angular bower repos from current local build.
3
+ # Script for removing tags from the Angular bower repos
4
4
5
5
echo " #################################"
6
6
echo " #### Untag bower ################"
@@ -29,9 +29,6 @@ function init {
29
29
)
30
30
}
31
31
32
-
33
-
34
-
35
32
function prepare {
36
33
#
37
34
# clone repos
@@ -44,15 +41,16 @@ function prepare {
44
41
45
42
#
46
43
# update bower.json
47
- # tag each repo
44
+ # delete tag in each repo
48
45
#
49
46
for repo in " ${REPOS[@]} "
50
47
do
51
- echo " -- Removing $NEW_VERSION tag from bower-$repo "
48
+ echo " -- Creating dummy git repo for bower-$repo with origin remote"
49
+ mkdir $TMP_DIR /bower-$repo
52
50
cd $TMP_DIR /bower-$repo
51
+ git init
52
+ git remote add origin git@github.com:angular/bower-$repo .git
53
53
54
- echo " -- Deleting tag v$VERSION_NUMBER in bower-$repo "
55
- git tag -d v$VERSION_NUMBER
56
54
cd $SCRIPT_DIR
57
55
done
58
56
}
@@ -62,7 +60,7 @@ function publish {
62
60
do
63
61
echo " -- Pushing bower-$repo "
64
62
cd $TMP_DIR /bower-$repo
65
- git push origin v $NEW_VERSION
63
+ git push origin :v $VERSION_NUMBER
66
64
cd $SCRIPT_DIR
67
65
done
68
66
}
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
3
- # Script for updating code.angularjs.org repo from current local build .
3
+ # Script for removing specified release dir from code.angularjs.org.
4
4
5
- echo " #################################"
6
- echo " ## Update code.angular.js.org ###"
7
- echo " #################################"
5
+ echo " ################################################ "
6
+ echo " ## Remove a version from code.angular.js.org ###"
7
+ echo " ################################################ "
8
8
9
9
ARG_DEFS=(
10
10
" --action=(prepare|publish)"
@@ -22,27 +22,24 @@ function prepare {
22
22
git clone git@github.com:angular/code.angularjs.org.git $REPO_DIR
23
23
24
24
#
25
- # copy the files from the build
25
+ # Remove the files from the repo
26
26
#
27
27
echo " -- Removing $VERSION_NUMBER from code.angularjs.org"
28
28
cd $REPO_DIR
29
29
git rm -r $VERSION_NUMBER
30
30
31
- #
32
- # commit
33
- #
34
- echo " -- Committing code.angularjs.org"
31
+ echo " -- Committing removal to code.angularjs.org"
35
32
git commit -m " removing v$VERSION_NUMBER "
36
33
}
37
34
38
35
function _update_code() {
39
36
cd $REPO_DIR
40
37
41
- echo " -- Pushing code.angularjs.org"
38
+ echo " -- Pushing code.angularjs.org to github "
42
39
git push origin master
43
40
44
41
45
- echo " -- Refreshing code.angularjs.org: backend= $backend "
42
+ echo " -- Propagating update to server code.angularjs.org"
46
43
curl https://code.angularjs.org/gitFetchSite.php
47
44
48
45
}
Original file line number Diff line number Diff line change @@ -42,8 +42,4 @@ function run {
42
42
phase publish
43
43
}
44
44
45
- echo $VERSION_NUMBER
46
- # Will need to change the angular.js CHANGELOG.md manually
47
- git tag -d $VERSION_NUMBER
48
-
49
45
source $( dirname $0 ) /../utils.inc
You can’t perform that action at this time.
0 commit comments