Skip to content

Commit

Permalink
Add: push tag guide
Browse files Browse the repository at this point in the history
  • Loading branch information
markruler committed Mar 30, 2021
1 parent 821e45e commit 32c773f
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -70,24 +70,27 @@ clean:
.PHONY: clean

build: test
@GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(BIN_DIR)/$(NAME) -v -ldflags="${LDFLAGS}" main.go
GO111MODULE=on GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o $(BIN_DIR)/$(NAME) -v -ldflags="${LDFLAGS}" main.go
.PHONY: build

docker:
@scripts/docker.sh
scripts/docker.sh
.PHONY: docker

release-snapshot:
@rm -rf dist
@goreleaser --snapshot --skip-publish
rm -rf dist
goreleaser --snapshot --skip-publish
.PHONY: release

# https://github.com/settings/tokens
# - [x] repo_deployment
# - [x] public_repo
release-publish:
@rm -rf dist
rm -rf dist
# Update README.md
# Update VERSION
# git commit
git tag $(VERSION)
git push origin $(VERSION)
goreleaser release --rm-dist
# git push origin main
.PHONY: release-publish

0 comments on commit 32c773f

Please sign in to comment.