Skip to content

Commit

Permalink
release procedure improved
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Oct 29, 2019
1 parent b6c9d69 commit 54cf0c2
Showing 1 changed file with 32 additions and 18 deletions.
50 changes: 32 additions & 18 deletions doc/howto_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ git status

### Update VERSION file to release version number

Directly edit in GH interface:
Directly edit VERSION file in GH interface:

https://github.com/OSGeo/grass/blob/releasebranch_7_8/include/VERSION

Expand All @@ -112,26 +112,28 @@ Example:

### Create release tag

See https://help.github.com/en/articles/creating-releases
(see https://help.github.com/en/articles/creating-releases)

Preparation:

### Changelog and tagging etc

```bash
# update from GH
# assumptions:
# - own fork as "origin"
# - remote repo as "upstream"
git fetch --all --prune && git checkout releasebranch_7_8 && \
git merge upstream/releasebranch_7_8 && git push origin releasebranch_7_8

# create version env var for convenience:
MAJOR=`cat include/VERSION | head -1 | tail -1`
MINOR=`cat include/VERSION | head -2 | tail -1`
RELEASE=`cat include/VERSION | head -3 | tail -1`
VERSION=${MAJOR}.${MINOR}.${RELEASE}
echo $VERSION

# Create Changelog file on release branch:
python tools/gitlog2changelog.py
mv ChangeLog ChangeLog_$VERSION
head ChangeLog_$VERSION
gzip ChangeLog_$VERSION

# RELEASETAG variable not really needed any more:
TODAY=`date +"%Y%m%d"`
RELEASETAG=release_${TODAY}_grass_${MAJOR}_${MINOR}_${RELEASE}
echo $RELEASETAG
Expand All @@ -143,7 +145,7 @@ echo $RELEASETAG
echo "$VERSION"
```

Done in GH interface:
To be done in GH interface:

https://github.com/OSGeo/grass/releases/new

Expand All @@ -152,14 +154,6 @@ https://github.com/OSGeo/grass/releases/new
TODO: add checkout of code via release tag (?)

```bash
# update from GH
# assumptions:
# - own fork as "origin"
# - remote repo as "upstream"

git fetch --all --prune && git checkout releasebranch_7_8 && \
git merge upstream/releasebranch_7_8 && git push origin releasebranch_7_8

# create source package (in the source directory):
echo grass-${VERSION}

Expand All @@ -174,9 +168,19 @@ rmdir ./grass-${VERSION}
md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum
```


Create Changelog file on release branch:

```bash
python tools/gitlog2changelog.py
mv ChangeLog ChangeLog_$VERSION
head ChangeLog_$VERSION
gzip ChangeLog_$VERSION
```

### Reset include/VERSION file to git version:

Directly edit in GH interface:
Directly edit VERSION file in GH interface:

https://github.com/OSGeo/grass/blob/releasebranch_7_8/include/VERSION

Expand All @@ -189,6 +193,16 @@ Example:
2019
```

Reset local copy to GH:
```bash
# update from GH
# assumptions:
# - own fork as "origin"
# - remote repo as "upstream"
git fetch --all --prune && git checkout releasebranch_7_8 && \
git merge upstream/releasebranch_7_8 && git push origin releasebranch_7_8
```

### Upload source code tarball to OSGeo servers

```bash
Expand Down

0 comments on commit 54cf0c2

Please sign in to comment.