mirror of
https://github.com/certbot/certbot.git
synced 2026-08-03 03:32:13 +02:00
Production releases come from the candidate-$version branch
(then get merged into master with a PR afterwards)
This commit is contained in:
@@ -26,7 +26,7 @@ if [ "$1" = "--production" ] ; then
|
|||||||
echo Releasing production version "$version"...
|
echo Releasing production version "$version"...
|
||||||
nextversion="$3"
|
nextversion="$3"
|
||||||
CheckVersion "Next version" "$nextversion"
|
CheckVersion "Next version" "$nextversion"
|
||||||
RELEASE_BRANCH="master"
|
RELEASE_BRANCH="candidate-$version"
|
||||||
else
|
else
|
||||||
version=`grep "__version__" letsencrypt/__init__.py | cut -d\' -f2 | sed s/\.dev0//`
|
version=`grep "__version__" letsencrypt/__init__.py | cut -d\' -f2 | sed s/\.dev0//`
|
||||||
version="$version.dev$(date +%Y%m%d)1"
|
version="$version.dev$(date +%Y%m%d)1"
|
||||||
@@ -73,7 +73,7 @@ echo "Cloning into fresh copy at $root" # clean repo = no artificats
|
|||||||
git clone . $root
|
git clone . $root
|
||||||
git rev-parse HEAD
|
git rev-parse HEAD
|
||||||
cd $root
|
cd $root
|
||||||
if [ "$RELEASE_BRANCH" != master ] ; then
|
if [ "$RELEASE_BRANCH" != "candidate-$version" ] ; then
|
||||||
git branch -f "$RELEASE_BRANCH"
|
git branch -f "$RELEASE_BRANCH"
|
||||||
fi
|
fi
|
||||||
git checkout "$RELEASE_BRANCH"
|
git checkout "$RELEASE_BRANCH"
|
||||||
@@ -167,7 +167,7 @@ echo "KGS is at $root/kgs"
|
|||||||
echo "In order to upload packages run the following command:"
|
echo "In order to upload packages run the following command:"
|
||||||
echo twine upload "$root/dist.$version/*/*"
|
echo twine upload "$root/dist.$version/*/*"
|
||||||
|
|
||||||
if [ "$RELEASE_BRANCH" = master ] ; then
|
if [ "$RELEASE_BRANCH" = candidate-"$version" ] ; then
|
||||||
SetVersion "$nextversion"
|
SetVersion "$nextversion"
|
||||||
git diff
|
git diff
|
||||||
git commit -m "Bump version to $nextversion"
|
git commit -m "Bump version to $nextversion"
|
||||||
|
|||||||
Reference in New Issue
Block a user