Skip to content

Commit

Permalink
Merge pull request #22 from guardian/rk/release-instructions
Browse files Browse the repository at this point in the history
Add release instructions, bump version ready for release
  • Loading branch information
kenoir authored Jun 9, 2023
2 parents cf160bf + bd5b0e8 commit 34e645a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,37 @@ In your build.sbt:
libraryDependencies += "com.gu" %% "hmac-headers" % "<version>" // find the latest version by checking this repo's tags
```

## Releasing

### Testing locally

You can publish locally by running:

```shell
# Test your signing setup works (you may need to follow the guide below first)
sbt +publishLocalSigned

# Publish locally so that other projects can use your local ivy repository
sbt +publishLocal
```

### Get access to publish
You will need to have access to publish to Maven Central for `com.gu` assets.
You can [follow this guide](https://docs.google.com/document/d/1rNXjoZDqZMsQblOVXPAIIOMWuwUKe3KzTCttuqS7AcY/edit#heading=h.651termw35o0)
to get access.

### Update the version
When you are ready to release, ensure that [`version.sbt`](./version.sbt) is updated and committed in the default branch
(`main`) with an appropriate version bump following [`semver`](https://semver.org/).

### Tag and release

This will create & push the appropriate version tag for you:

```shell
sbt release
````

## Verifying requests

```
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "1.2.0"
ThisBuild / version := "2.0.0-SNAPSHOT"

0 comments on commit 34e645a

Please sign in to comment.