Skip to content

Commit

Permalink
updated docs for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-stephens committed Jan 24, 2025
1 parent 70738a5 commit ec86dbf
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,30 @@
We use [goreleaser](https://goreleaser.com) to release new versions of ZDNS. To release a new version, follow these steps:

0. Install `goreleaser`:
```shell
```shell
brew install goreleaser/tap/goreleaser
```

1. Create a new tag and push to GH:
```shell
git tag -a vA.B.C -m "Release A.B.C"
```

2. Test the release:
```shell
goreleaser release --skip-publish --clean
```
1. Build the binaries:

3. Set GitHub Token (at least configured with `write:packages`)
```shell
goreleaser build --clean
export GITHUB_TOKEN="YOUR_GH_TOKEN"
```
4. Push Tag to Github
Be sure that this tagged commit is what you want to tag. Once you push you shouldn't delete the tagged version.
```shell
git push origin vA.B.C
```
5. Release!
```shell
goreleaser release --clean
```

0 comments on commit ec86dbf

Please sign in to comment.