This document describes the steps to release a new version of digcaa.
- You have commit access to the repository
- You have push access to the repository
-
Determine the new version
VERSION=0.X.0
Use simple incremental versioning:
- Current version:
v0.5.0 - Next version:
v0.6.0,v0.7.0, etc.
- Current version:
-
Run tests and confirm they pass
go test ./... -
Build and confirm it compiles
go build ./...
-
Commit any pending changes
git add . git commit -m "Description of changes"
-
Create a tag
git tag -a v$VERSION -s -m "Release $VERSION"
-
Push the changes and tag
git push origin main git push origin v$VERSION
-
Verify the new version appears on GitHub releases
-
Wait a few minutes for the Go module proxy to index the new version
-
Test installation:
go install github.com/weppos/digcaa/cmd/digcaa@v$VERSION -
Users can now install with
@latestto get the new version