Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 12, 2020
1 parent e631177 commit b7c152e
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions bin/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,23 @@

set -e

# Make sure the release tag is provided.
if (( "$#" != 1 ))
then
echo "Tag has to be provided."
echo "Tag has to be provided"

exit 1
fi

# Make sure the working directory is clear.
if [ -z "$(git status --porcelain)" ]; then
echo "Working directory clean"
else
echo "Your working directory is dirty. Did you forget to commit your changes?"

exit 1
fi

RELEASE_BRANCH="6.x"
CURRENT_BRANCH=$(git branch --show-current)
CURRENT_BRANCH="6.x"
VERSION=$1

# Make sure current branch and release branch match.
if (( $RELEASE_BRANCH != $CURRENT_BRANCH ))
then
echo "Release branch ($RELEASE_BRANCH) does not matches the current active branch ($CURRENT_BRANCH)."

exit 1
fi

# Always prepend with "v"
if [[ $VERSION != v* ]]
then
VERSION="v$VERSION"
fi

# Tag Framework
git pull
git tag $VERSION
git push origin --tags

Expand All @@ -59,7 +39,7 @@ do
cd $TMP_DIR;

git clone $REMOTE_URL .
git checkout "$RELEASE_BRANCH";
git checkout "$CURRENT_BRANCH";

git tag $VERSION
git push origin --tags
Expand Down

0 comments on commit b7c152e

Please sign in to comment.