Merge pull request #24 from conserver/adjust-release-process

tweaking release process for next time
This commit is contained in:
Bryan Stansell 2019-03-27 00:07:34 -07:00 committed by GitHub
commit d679fa21b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

@ -5,7 +5,7 @@ Creating a new release
- Edit `conserver/version.h`
- Update `CHANGES` with output of `./package/create-changes vx.y.z..`
- Double-check and merge release branch
- Run `./package/make-and-stage-release` to create distribution, pgp sign, tag release, and push to github
- Run `GITHUB_TOKEN=xxxx ./package/make-and-stage-release` to tag release, create distribution, pgp sign, and push to github
Requirements:

View File

@ -7,11 +7,23 @@ local=false && [ "$1" = "local" ] && local=true
[ -f conserver/version.h ] || { echo "you are in the wrong place" ; exit 1; }
ver=`./package/get-version number`
if ! $local; then
echo "Ready to tag release v$ver (y/N)?"
read i
if [ "$i" = "y" ]; then
echo "Adding git tag v$ver"
git tag -a -m "Release $ver" v$ver
fi
fi
if [ ! -f ../conserver-$ver.tar.gz ] || $local; then
(
[ -d build ] && rm -rf build
mkdir build
git archive --format=tar.gz --prefix=conserver-$ver/ v$ver | (cd build; tar zxf -)
archtag=v$ver
$local && archtag=HEAD
git archive --format=tar.gz --prefix=conserver-$ver/ $archtag | (cd build; tar zxf -)
cd build/conserver-$ver
../../package/setup-configure
rm -rf package
@ -37,12 +49,12 @@ ls -l ../conserver-$ver.tar.gz*
echo "Ready to push (y/N)?"
read i
if [ "$i" = "y" ]; then
git tag -a -m "Release $ver" v$ver && git push
git push --tags
githubrelease release conserver/conserver create --name conserver-$ver --body "$body" v$ver ../conserver-$ver.tar.gz*
echo You can publish this release on the website or with:
echo " "githubrelease release conserver/conserver publish v$ver
else
echo Ok, here is the command I would have used:
echo " "git tag -a -m \""Release $ver"\" v$ver \&\& git push
echo " "git push --tags
echo " "githubrelease release conserver/conserver create --name conserver-$ver --body \""$body"\" v$ver ../conserver-$ver.tar.gz*
fi