mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-09 23:24:05 -08:00
Update RELEASE doc
* Simplify tag snipit slightly. * Add a git alias helper. Signed-off-by: Ben Kochie <superq@gmail.com>
This commit is contained in:
parent
3268eac2dd
commit
5382ce867b
15
RELEASE.md
15
RELEASE.md
|
@ -103,11 +103,20 @@ Entries in the `CHANGELOG.md` are meant to be in this order:
|
|||
Tag the new release via the following commands:
|
||||
|
||||
```bash
|
||||
$ tag=$(< VERSION)
|
||||
$ git tag -s "v${tag}" -m "v${tag}"
|
||||
$ git push origin "v${tag}"
|
||||
$ tag="v$(< VERSION)"
|
||||
$ git tag -s "${tag}" -m "${tag}"
|
||||
$ git push origin "${tag}"
|
||||
```
|
||||
|
||||
Optionally, you can use this handy `.gitconfig` alias.
|
||||
|
||||
```ini
|
||||
[alias]
|
||||
tag-release = "!f() { tag=v${1:-$(cat VERSION)} ; git tag -s ${tag} -m ${tag} && git push origin ${tag}; }; f"
|
||||
```
|
||||
|
||||
Then release with `git tag-release`.
|
||||
|
||||
Signing a tag with a GPG key is appreciated, but in case you can't add a GPG key to your Github account using the following [procedure](https://help.github.com/articles/generating-a-gpg-key/), you can replace the `-s` flag by `-a` flag of the `git tag` command to only annotate the tag without signing.
|
||||
|
||||
Once a tag is created, the release process through CircleCI will be triggered for this tag and Circle CI will draft the GitHub release using the `prombot` account.
|
||||
|
|
Loading…
Reference in a new issue