Last active
January 6, 2016 16:07
-
-
Save gamerson/70c5da5e89f60b16ea52 to your computer and use it in GitHub Desktop.
Liferay Workspace release script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set -e | |
| set -x | |
| git checkout master | |
| git pull --ff-only [email protected]:david-truong/liferay-workspace.git master | |
| git branch -D releases | |
| git checkout -b releases | |
| rm README.md | |
| rm -rf modules/apps/* | |
| rm -rf modules/extensions/* | |
| rm -rf modules/shared/* | |
| rm -rf plugins-sdk/ | |
| rm -rf themes/* | |
| git commit -am "Prepare release $REL_VERSION" | |
| git tag -a $REL_VERSION -m "Release $REL_VERSION" | |
| git push --force [email protected]:david-truong/liferay-workspace.git releases | |
| git push [email protected]:david-truong/liferay-workspace.git $REL_VERSION |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment