DOCS: Make version a variable in rel eng doc (#2206)

This commit is contained in:
Tom Limoncelli 2023-03-22 01:10:08 -04:00 committed by GitHub
parent a08a4b3486
commit ecb0ecb62a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,27 +5,25 @@ These are the instructions for producing a release.
CircleCI will do most of the work for you. You will need to edit the draft release notes.
Please change the version number as appropriate. Substitute (for example)
`3.20.0` any place you see `VERSION` in this doc.
`v3.28.0` any place you see `$VERSION` in this doc.
## Step 1. Rebuild generated files
```shell
export VERSION=v3.28.0
git checkout master
git pull
go generate
go fmt ./...
go generate ./...
go mod tidy
git add -A
git commit -m "Update generated files for VERSION"
git commit -a -m "Update generated files for $VERSION"
```
This will update the following generated files:
* `commands/types/dnscontrol.d.ts`
## Step 2. Tag the commit in master that you want to release
```shell
git tag -a v3.20.0
export VERSION=v3.28.0
git tag -m "Release $VERSION" -a $VERSION
git push origin --tags
```