Browse Source

update make gen-docs individually executed

pull/28/head v1.2.0
Dimas Restu H 4 years ago
parent
commit
4dc55dcca4
  1. 1
      .goreleaser.yml
  2. 5
      Makefile

1
.goreleaser.yml

@ -1,7 +1,6 @@
before: before:
hooks: hooks:
- make vendor - make vendor
- make gen-docs
builds: builds:
- main: ./cmd/main/main.go - main: ./cmd/main/main.go
env: env:

5
Makefile

@ -23,27 +23,23 @@ vendor:
release: release:
make vendor make vendor
make gen-docs
make clean-dist make clean-dist
goreleaser release --snapshot --skip-publish --rm-dist goreleaser release --snapshot --skip-publish --rm-dist
echo "Release '$(SERVICE_NAME)' complete, please check dist directory." echo "Release '$(SERVICE_NAME)' complete, please check dist directory."
publish: publish:
make vendor make vendor
make gen-docs
make clean-dist make clean-dist
GITHUB_TOKEN=$(GITHUB_TOKEN) goreleaser release --rm-dist GITHUB_TOKEN=$(GITHUB_TOKEN) goreleaser release --rm-dist
echo "Publish '$(SERVICE_NAME)' complete, please check your repository releases." echo "Publish '$(SERVICE_NAME)' complete, please check your repository releases."
build: build:
make vendor make vendor
make gen-docs
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build -ldflags="-s -w" -a -o $(SERVICE_NAME) cmd/main/main.go CGO_ENABLED=$(BUILD_CGO_ENABLED) go build -ldflags="-s -w" -a -o $(SERVICE_NAME) cmd/main/main.go
echo "Build '$(SERVICE_NAME)' complete." echo "Build '$(SERVICE_NAME)' complete."
run: run:
make vendor make vendor
make gen-docs
go run cmd/main/*.go go run cmd/main/*.go
gen-docs: gen-docs:
@ -63,7 +59,6 @@ clean:
commit: commit:
make vendor make vendor
make gen-docs
make clean make clean
git add . git add .
git commit -am $(COMMIT_MSG) git commit -am $(COMMIT_MSG)

Loading…
Cancel
Save