If you are reading this, you probably forgot how to release a new version. Keep reading.
-
Start your git flow workflow:
git flow init
-
Create a new milestone in GitHub. Plan the features of your new release. Assign existing bugs to your new milestone.
-
Start a new feature:
git flow feature start <feature name>
-
Code, code and code. More coding. Mess it up several times. Push to feature branch. Watch Travis go red. Write unit tests. Watch Travis go red again. Don't leave uncommitted changes.
-
Finish your feature:
git flow feature finish <feature name>
-
Repeat 3-5 for every other feature you have planned for this release.
-
When you're done with the features and ready to publish, start a new release:
git flow release start <release number>
-
Bump your version:
bumpversion --no-commit <major, minor or patch>
-
Update your changelog:
gitchangelog > HISTORY.md
-
Commit your changes to version files and changelog:
git commit -aS -m "Updating Changelog and version."
-
Delete the tag made by bumpversion:
git tag -d <release number>
-
Finish your release:
git flow release finish -s -p <release number>
-
Draft a new release in GitHub (based on the new version tag) and include a description. Also pick a codename because it makes you cool.
-
Close the milestone in GitHub.
-
Write about your new version in your blog. Tweet it, post it on facebook.
-
Create a new milestone in GitHub. Assign existing bugs to your new milestone.
-
Start a new hotfix:
git flow hotfix start <new version>
-
Code your hotfix.
-
Bump your version:
bumpversion --no-commit <major, minor or patch>
-
Update your changelog:
gitchangelog > HISTORY.md
-
Commit your changes to version files and changelog:
git commit -aS -m "Updating Changelog and version."
-
Delete the tag made by bumpversion:
git tag -d <new version>
-
Finish your hotfix:
git flow hotfix finish -s -p <new version>
-
Draft a new release in GitHub (based on the new version tag) and include a description. Don't change the codename if it is a hotfix.
-
Close the milestone in GitHub.
-
Write about your new version in your blog. Tweet it, post it on facebook.