mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 06:46:19 +08:00
DOCS: Make version a variable in rel eng doc (#2206)
This commit is contained in:
parent
a08a4b3486
commit
ecb0ecb62a
|
@ -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
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue