forked from eclipse-archived/ceylon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
release-git-push.sh
executable file
·27 lines (19 loc) · 1.13 KB
/
release-git-push.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
#!/bin/bash
. release-common.sh
cd ../ceylon
#log "Pushing distrib master"
#git checkout master 2>&1 >> $LOG_FILE || fail "Git checkout master"
#git push origin 2>&1 >> $LOG_FILE || fail "Git push master"
log "Pushing distrib version branch"
git checkout version-$CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git checkout new release branch"
git push --set-upstream origin version-$CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git push new release branch"
git push origin $CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git tag new release branch"
cd ../ceylon-sdk
#log "Pushing SDK master"
#git checkout master 2>&1 >> $LOG_FILE || fail "Git checkout SDK master branch"
#git push origin master 2>&1 >> $LOG_FILE || fail "Git push new SDK master branch"
log "Pushing SDK version branch"
git checkout version-$CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git checkout new SDK release branch"
git push --set-upstream origin version-$CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git push new SDK release branch"
git push origin $CEYLON_RELEASE_VERSION 2>&1 >> $LOG_FILE || fail "Git tag SDK new release branch"
cd ../ceylon