Skip to content

Commit

Permalink
Release 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
alanconway committed May 31, 2024
1 parent d0b1c1b commit 332747e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

VERSION=0.0.1

all: build test

build:
go build ./...

test:
go test ./...

release: all
hack/tag-release.sh $(VERSION)
16 changes: 16 additions & 0 deletions hack/tag-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
# Apply and push a release tag.
set -e
VERSION=$1
[[ "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[^[:space:]]+)?$ ]] || {
echo "not a semantic version X.Y.Z: $VERSION"
exit 1
}
[ "$(git status -s)" = "" ] || {
git status
echo "working directory not clean"
exit 1
}
set -x
git tag "v$VERSION" -a -m "Release $VERSION"
git push --follow-tags

0 comments on commit 332747e

Please sign in to comment.