2018-01-06 06:14:09 +00:00
|
|
|
Releasing
|
|
|
|
========
|
|
|
|
|
|
|
|
1. Change the `VERSION_NAME` value in `gradle.properties` to the version number to be released.
|
2019-02-23 18:07:20 +00:00
|
|
|
2. Update the `README.md` with the new version and update `CHANGELOG.md`
|
2018-01-06 06:14:09 +00:00
|
|
|
3. `./gradlew clean build`
|
|
|
|
4. `git commit -am "Prepare for release X.Y.Z."` (where X.Y.Z is the new version)
|
2021-06-15 03:23:58 +00:00
|
|
|
5. `git tag -a X.Y.Z -m "Version X.Y.Z"` `-m "Changelog message 1"` `-m "Changelog message 2"` `-m "Changelog message 3"`
|
2018-01-06 06:14:09 +00:00
|
|
|
6. `git push && git push --tags`
|
|
|
|
|
|
|
|
*Note:* To get the changelog messages from the commit history, issue
|
|
|
|
|
|
|
|
```shell
|
|
|
|
git log "$(git tag | tail -n2 | head -n1)..$(git tag | tail -n1)" --oneline --invert-grep --grep="Merge pull request" --grep="Prepare for release" | cut -d' ' -f2- | sed -E -e 's/^/-m "/' | sed -E -e 's/$/"/'
|
|
|
|
```
|
|
|
|
|