| 1 |
# Release Process |
| 2 |
|
| 3 |
Release process of rdma-core library consists from three stages |
| 4 |
|
| 5 |
1. Change library version, according to [Overall Package Version](versioning.md) guide. |
| 6 |
2. Push the change above to master branch and ensure that Travis CI reports successful build. |
| 7 |
3. Create local annotated signed tag vX.X.X (`git tag vX.X.X -a -s`). |
| 8 |
4. Issue `git release` command which will push tag, trigger Travis CI to upload |
| 9 |
release tar.gz file and create release notes based on tag context with release notes in it. |
| 10 |
|
| 11 |
## git release |
| 12 |
|
| 13 |
There are many implementations of different `git release` commands. We recommend you to use |
| 14 |
the command from [this](https://github.com/mpalmer/github-release) repository due to its simplicity. |
| 15 |
|
| 16 |
--- |
| 17 |
Copy&Paste from relevant [README](https://github.com/mpalmer/github-release/blob/master/README.md) |
| 18 |
|
| 19 |
--- |
| 20 |
|
| 21 |
This very simple gem provides a `git release` command, which will |
| 22 |
automatically fill out any and all "release tags" into fully-blown "Github |
| 23 |
Releases", complete with release notes, a heading, and all the other good |
| 24 |
things in life. |
| 25 |
|
| 26 |
Using this gem, you can turn the following tag annotation: |
| 27 |
|
| 28 |
First Release |
| 29 |
|
| 30 |
It is with much fanfare and blowing of horns that I bequeath the |
| 31 |
awesomeness of `git release` upon the world. |
| 32 |
|
| 33 |
Features in this release include: |
| 34 |
|
| 35 |
* Ability to create a release from a tag annotation or commit message; |
| 36 |
* Automatically generates an OAuth token if needed; |
| 37 |
* Feeds your cat while you're hacking(*) |
| 38 |
|
| 39 |
You should install it now! `gem install github-release` |
| 40 |
|
| 41 |
Into [this](https://github.com/mpalmer/github-release/releases/tag/v0.1.0) |
| 42 |
simply by running |
| 43 |
|
| 44 |
git release |
| 45 |
|
| 46 |
### Installation |
| 47 |
|
| 48 |
Simply install the gem: |
| 49 |
|
| 50 |
gem install github-release |
| 51 |
|
| 52 |
|
| 53 |
### Usage |
| 54 |
|
| 55 |
Using `git release` is very simple. Just make sure that your `origin` |
| 56 |
remote points to your Github repo, and then run `git release`. All tags |
| 57 |
that look like a "version tag" (see "Configuration", below) will be created |
| 58 |
as Github releases (if they don't already exist) and the message from the |
| 59 |
tag will be used as the release notes. |
| 60 |
|
| 61 |
The format of the release notes is quite straightforward -- the first line |
| 62 |
of the message associated with the commit will be used as the "name" of the |
| 63 |
release, with the rest of the message used as the "body" of the release. |
| 64 |
The body will be interpreted as Github-flavoured markdown, so if you'd like |
| 65 |
to get fancy, go for your life. |
| 66 |
|
| 67 |
The message associated with the "release tag" is either the tag's annotation |
| 68 |
message (if it is an annotated tag) or else the commit log of the commit on |
| 69 |
which the tag is placed. I *strongly* recommend annotated tags (but then |
| 70 |
again, [I'm biased...](http://theshed.hezmatt.org/git-version-bump)) |
| 71 |
|
| 72 |
The first time you use `git release`, it will ask you for your Github |
| 73 |
username and password. This is used to request an OAuth token to talk to |
| 74 |
the Github API, which is then stored in your global git config. Hence you |
| 75 |
*shouldn't* be asked for your credentials every time you use `git release`. |
| 76 |
If you need to use multiple github accounts for different repos, you can |
| 77 |
override the `release.api-token` config parameter in your repo configuration |
| 78 |
(but you'll have to get your own OAuth token). |
| 79 |
|
| 80 |
|
| 81 |
### Configuration |
| 82 |
|
| 83 |
There are a few things you can configure to make `git release` work slightly |
| 84 |
differently. None of them should be required for normal, sane use. |
| 85 |
|
| 86 |
* `release.remote` (default `origin`) -- The name of the remote which is |
| 87 |
used to determine what github repository to send release notes to. |
| 88 |
|
| 89 |
* `release.api-token` (default is runtime generated) -- The OAuth token |
| 90 |
to use to authenticate access to the Github API. When you first run `git |
| 91 |
release`, you'll be prompted for a username and password to use to |
| 92 |
generate an initial token; if you need to override it on a per-repo |
| 93 |
basis, this is the key you'll use. |
| 94 |
|
| 95 |
* `release.tag-regex` (default `v\d+\.\d+(\.\d+)?$`) -- The regular |
| 96 |
expression to filter which tags denote releases, as opposed to other tags |
| 97 |
you might have decided to make. Only tags which match this regular |
| 98 |
expression will be pushed up by `git release`, and only those tags will |
| 99 |
be marked as releases. |