[ Web Proxy ]
URL:
Viewing: https://raw.githubusercontent.com/Donnerbart/client_java/main/RELEASING.md [Back]  [Original]

# Releasing Instructions for Prometheus Java Client

## Before the Release

If there have been significant changes since the last release, update the
benchmarks before creating a new release:

```shell
mise run update-benchmarks
```

## Create a Release

1. Go to 
2. Click on "Choose a tag", enter the tag name (e.g. `v0.1.0`), and click "Create a new tag".
3. Click on "Generate release notes" to auto-generate the release notes based on the commits since
   the last release.
4. Click on "Publish release".

## Major or minor release

After the release is created, do a text replace everywhere in the repository to update the
snapshot version in the `pom.xml` files (and some other files) to the next version.
For example, if the last release was `1.4.0`, the next snapshot version should be `1.5.0-SNAPSHOT`.

Replace `1.4.0-SNAPSHOT` with `1.5.0-SNAPSHOT` in all following files.

## If the GPG key expired

1. Generate a new key:
   
2. Distribute the
   key: 
3. use `gpg --armor --export-secret-keys YOUR_ID` to
   export ([docs](https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#gpg))
4. Update the
   passphrase:  
5. Update the GPG
   key: 

Web Proxy Viewer  |  New URL  |  Original Page