Skip to content

Commit

Permalink
update make gen-docs individually executed
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaskiddo committed May 9, 2022
1 parent dc4a2c0 commit 4dc55dc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
before:
hooks:
- make vendor
- make gen-docs
builds:
- main: ./cmd/main/main.go
env:
Expand Down
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,23 @@ vendor:

release:
make vendor
make gen-docs
make clean-dist
goreleaser release --snapshot --skip-publish --rm-dist
echo "Release '$(SERVICE_NAME)' complete, please check dist directory."

publish:
make vendor
make gen-docs
make clean-dist
GITHUB_TOKEN=$(GITHUB_TOKEN) goreleaser release --rm-dist
echo "Publish '$(SERVICE_NAME)' complete, please check your repository releases."

build:
make vendor
make gen-docs
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build -ldflags="-s -w" -a -o $(SERVICE_NAME) cmd/main/main.go
echo "Build '$(SERVICE_NAME)' complete."

run:
make vendor
make gen-docs
go run cmd/main/*.go

gen-docs:
Expand All @@ -63,7 +59,6 @@ clean:

commit:
make vendor
make gen-docs
make clean
git add .
git commit -am $(COMMIT_MSG)
Expand Down

0 comments on commit 4dc55dc

Please sign in to comment.