- Checkout
master
(git checkout master
) - Pull latest changes from upstream (
git pull
) - Create an entry in
_changes/
for the current date and write in the changes since the last version. Easiest way to do this is to copy the previous file and update it. (Yes those double---
lines at the top of each file are required) - Commit (
git commit -am "Prepare release 20XX-YY-ZZ"
) - Tag (
git tag -a 20XX-YY-ZZ -m "20XX-YY-ZZ"
) - Checkout
gh-pages
branch (git checkout gh-pages
)- If you don't have a
gh-pages
branch locally, rungit checkout -t origin/gh-pages
.
- If you don't have a
- Merge in
master
(git merge master
) - Push both branches (
git push --all
) - Push tag (
git push --tags
)