mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
checkout develop
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [[ $TRAVIS_BRANCH == "master" ]]; then
|
if [[ $TRAVIS_BRANCH == "master" ]]; then
|
||||||
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
|
||||||
else
|
else
|
||||||
@@ -12,13 +10,14 @@ echo "git tag -a ${VERSION} -m ${VERSION}"
|
|||||||
git config --local user.name "alfresco-build"
|
git config --local user.name "alfresco-build"
|
||||||
git config --local user.email "build@alfresco.com"
|
git config --local user.email "build@alfresco.com"
|
||||||
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
git tag -a ${VERSION} -m "${VERSION} [ci skip] "
|
||||||
# git remote rm origin
|
git remote rm origin
|
||||||
# GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git
|
||||||
# git remote add origin $GITHUB_REPO
|
git remote add origin $GITHUB_REPO
|
||||||
|
|
||||||
if [[ "$1" == "--dryrun" ]]; then
|
if [[ "$1" == "--dryrun" ]]; then
|
||||||
echo "dry run";
|
echo "dry run";
|
||||||
git tag | grep "${VERSION}"
|
git tag | grep "${VERSION}"
|
||||||
|
git checkout develop
|
||||||
else
|
else
|
||||||
echo "LIVE!"
|
echo "LIVE!"
|
||||||
# git push origin --tags
|
# git push origin --tags
|
||||||
|
|||||||
Reference in New Issue
Block a user