Skip to content

Commit

Permalink
Merge pull request #1168 from zalando/gh-1166-add-release-steps
Browse files Browse the repository at this point in the history
Add release steps
  • Loading branch information
vadeg committed Jul 6, 2020
2 parents dd1c950 + 14e0b70 commit f58ab4e
Showing 1 changed file with 26 additions and 3 deletions.
29 changes: 26 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,29 @@ MIT license with an exception. See [license file](LICENSE).
### Prerequisites

* [Signing plugin](https://docs.gradle.org/current/userguide/signing_plugin.htm) configured
* `OSSRH_JIRA_USERNAME` and `OSSRH_JIRA_PASSWORD` to access [Maven Central Repo](https://oss.sonatype.org/) are
configured in `$HOME/.gradle/gradle.properties`

* `OSSRH_JIRA_USERNAME` and `OSSRH_JIRA_PASSWORD` environment variables to access [Maven Central Repo](https://oss.sonatype.org/) are
configured

### Steps

1. Create a separate branch with a name `release-<release-version>`.
2. Update current version in `server/gradle.properties` from `-SNAPSHOT` to a final version.
3. Release Zally server and API using the command
```
cd server
./gradlew clean build publishAllPublicationsToMavenRepository
```
4. Commit `server/gradle.properties` with the release version
5. Create a tag
```shell script
git tag v<release-version> -m "Version <release-version>"
```
6. Bump version in `server/gradle.properties` to the next `-SNAPSHOT`

7. Push `release` branch and tag
```shell script
git push origin
git push origin <tag-name>
```
8. Create a Pull Request with the version update
9. Create and publish a release with a new version in GitHub

0 comments on commit f58ab4e

Please sign in to comment.