-
Notifications
You must be signed in to change notification settings - Fork 107
Release Procedure
Joris Roovers edited this page Feb 24, 2023
·
18 revisions
- Check that you've included the latest CLI output in the documentation homepage
- Update the CHANGELOG.md
mkdocs gh-deploy
Template commit message:
0.1.0 release
[copy release notes here]
Full Release details in CHANGELOG.md.
WAIT FOR CI TO FINISH TESTING
export GITLINT_VERSION_TAG=v$(hatch version); echo $GITLINT_VERSION_TAG
git tag $GITLINT_VERSION_TAG
git tag --list
git push --tags
Go to the releases page and create a new release. Copy in changes from the raw CHANGELOG.md
GITLINT_VERSION="$(hatch version)"
virtualenv "/tmp/gitlint-release-$GITLINT_VERSION" && source "/tmp/gitlint-release-$GITLINT_VERSION/bin/activate"
pip install gitlint
gitlint --version
gitlint --debug
# Remove local copies
docker image rm -f jorisroovers/gitlint:$GITLINT_VERSION
docker image rm -f jorisroovers/gitlint:latest
docker image rm -f jorisroovers/gitlint
# Pull image from dockerhub and test again
docker run -v $(pwd):/repo jorisroovers/gitlint:$GITLINT_VERSION --version
docker run -v $(pwd):/repo jorisroovers/gitlint:$GITLINT_VERSION --debug
docker run -v $(pwd):/repo jorisroovers/gitlint:latest --version
docker run -v $(pwd):/repo jorisroovers/gitlint:latest --debug
docker run -v $(pwd):/repo jorisroovers/gitlint --version
docker run -v $(pwd):/repo jorisroovers/gitlint --debug
Bump the version number in gitlint/__init__.py
# From host system
export NEW_VERSION="0.9.0dev"
echo -e "Version bump to $NEW_VERSION\n\nBumped version to $NEW_VERSION." > /tmp/gitlint-$NEW_VERSION-version-bump-commitmsg
git commit -F /tmp/gitlint-$NEW_VERSION-version-bump-commitmsg
git tag $NEW_VERSION
git tag --list
git show # Tag should show up
git push