Skip to content

Commit

Permalink
Updated G78 release procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler authored Sep 6, 2019
1 parent 726b55e commit d6e5e1c
Showing 1 changed file with 24 additions and 29 deletions.
53 changes: 24 additions & 29 deletions doc/howto_release.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,23 +92,19 @@ git status

### Update VERSION file to release version number

TODO: probably better done in GH interface?!
Directly edit in GH interface:

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

Example:

#example:
```bash
7
8
0RC1
2019
```

Cleanup:
```bash
rm -f include/VERSION~
```

~~Update OSGeo4W setup.hint file~~
~~no longer needed~~
~~vim mswindows/osgeo4w/setup_x86.hint.tmpl~~
Expand All @@ -118,7 +114,7 @@ rm -f include/VERSION~

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

Done in GH interface.
Preparation:

### Changelog and tagging etc

Expand All @@ -130,11 +126,6 @@ RELEASE=`cat include/VERSION | head -3 | tail -1`
VERSION=${MAJOR}_${MINOR}_${RELEASE}
echo $VERSION

git checkout -b release_GRASS_GIS_$VERSION
git add include/VERSION
git commit -m"GRASS GIS $VERSION" include/VERSION
git push origin release_GRASS_GIS_$VERSION

# Create Changelog file on release branch:
python tools/gitlog2changelog.py
mv ChangeLog ChangeLog_$VERSION
Expand All @@ -149,16 +140,26 @@ echo $RELEASETAG
### Tag release (on GitHub)

```bash
echo "grass_$VERSION"
echo "$VERSION"
```

Do this in https://github.com/OSGeo/grass/releases/new
Done in GH interface:

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

### Packaging of source code tarball

TODO: add checkout of code via release tag
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 @@ -175,23 +176,17 @@ md5sum grass-${VERSION}.tar.gz > grass-${VERSION}.md5sum

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

TODO: probably better done in GH interface
Directly edit in GH interface:

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

Example:

#example
```bash
7
8
0dev
2019

rm -f include/VERSION~
git checkout -b back_to_git_dev
git add include/VERSION
git commit -m"back to git" include/VERSION
git push origin back_to_git_dev
# open PR and merge
```

### Upload source code tarball to OSGeo servers
Expand Down

0 comments on commit d6e5e1c

Please sign in to comment.