Files
patroni/release.sh
T
Alexander KukushkinandGitHub 7102346f87 Update release.sh (#2421)
in order to reflect the current release process
2022-09-27 09:43:38 +02:00

29 lines
559 B
Bash
Executable File

#!/bin/bash
# Release process:
# 1. Open a PR that updates release notes and Patroni version
# 2. Merge it
# 3. Run release.sh
## Bail out on any non-zero exitcode from the called processes
set -xe
if python3 --version &> /dev/null; then
alias python=python3
shopt -s expand_aliases
fi
python --version
git --version
version=$(python -c 'from patroni.version import __version__; print(__version__)')
python setup.py clean
python setup.py test
python setup.py flake8
python setup.py sdist bdist_wheel upload
git tag "v$version"
git push --tags