Skip to content

Commit

Permalink
how to release
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergey Sinica committed Jul 21, 2015
1 parent 6671619 commit 61e0c4c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 0 deletions.
44 changes: 44 additions & 0 deletions docs/how-to-release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
How to release
===============================================

* Write a [release notes](/docs/release-notes.md) and commit whem to master branch.

* Tag `master` branch with release information:

```
git tag -a -m "Release 2.0.0" v2.0.0
```
* Push tag to remote repository:
```
git push origin master --tags
```
* Checkout a tag:
```
git checkout tags/v2.0.0
```
* Update project version to `2.0.0`
```
mvn versions:set -DnewVersion=2.0.0
```
* Build project
```
mvn clean install
```
* Create a release from a tag `v2.0.0` in GitHub. Write release notes. Attach an artifact.
* Upload artifact to Bintray.
* Revert project version to snapshot
```
mvn versions:set -DnewVersion=0.0.1-SNAPSHOT
```
5 changes: 5 additions & 0 deletions docs/release-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Release notes

## Release 1.0.0 [21.07.2015]

* Initial release
8 changes: 8 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@
<encoding>UTF-8</encoding>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.1</version>
<configuration>
<generateBackupPoms>false</generateBackupPoms>
</configuration>
</plugin>
</plugins>
</build>

Expand Down

0 comments on commit 61e0c4c

Please sign in to comment.