Release tools for STK maintainers.
Let's assume that we want to release STK 2.8.1:
VER=2.8.1
Let's also assume that the stk
and stk-release-center
repositories
have both been cloned into the same directory, say, ~/repo/github/stk-kriging
.
Check that the version number is correct in stk_version.m
.
Check that NEWS.md
is up-to-date and good looking.
Create the release tag on the maintenance branch of the STK repository:
cd ~/repo/github/stk-kriging/stk # adapt to your setting, of course
git checkout 2.8.x
git tag ${VER}
git push --tags
Build the two tarballs and copy them to the stk-release-center
:
make all
cd ~/repo/github/stk-kriging/stk-release-center
./copy-built-tarballs.bash ${VER} ~/repo/github/stk-kriging/stk/build
Compute the check sums and create the release text in the stk-release-center
:
./compute-checksums.bash ${VER}
./create-github-release-text.bash ${VER}
Easy:
- Copy the three
md
files and the HTML doc from the unpackaed build torelease/${VER}
.- Remove the badges from
README.md
.
- Remove the badges from
- Update the symbolic link
latest
. - Commit, push.
Go to the release page on Github:
firefox https://github.com/stk-kriging/stk/releases/new?tag=${VER}
Then
- Set the title to
STK ${VER}
. - Copy-paste the release text from
release.md
. - The box "Set as a pre-release" should be unchecked (this is the default)
- The box "Set as the latest release" should be checked (this is the default).
- Upload the tarballs.
- Click on "Publish release".
Simply run, from the root of the repository,
./check-sums-on-github.bash ${VER}
which will create two files:
./${VER}/md5-sums
./${VER}/sha256-sums
Download manually the tarballs to ./${VER}/download/sourceforge
.
Then cd
to this directory and compare with Github checksums:
md5sum -c ../../md5-sums
sha256sum -c ../../sha256-sums