Skip to content

Instantly share code, notes, and snippets.

@gamerson
Last active January 6, 2016 16:07
Show Gist options
  • Select an option

  • Save gamerson/70c5da5e89f60b16ea52 to your computer and use it in GitHub Desktop.

Select an option

Save gamerson/70c5da5e89f60b16ea52 to your computer and use it in GitHub Desktop.
Liferay Workspace release script
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