skip git status

This commit is contained in:
Paul Schneider
2021-04-05 04:08:47 +01:00
parent c70092f18a
commit 3fea28a830

View File

@ -66,12 +66,7 @@ pack: $(NUGETSOURCE)/$(PKGFILENAME)
git_status_msg := $(shell git status -s)
$(NUGETSOURCE)/$(PKGFILENAME): $(BINTARGETPATH) ../../version.txt
ifeq ($(git_status),0)
nuget pack $(PRJNAME).nuspec -Version $(VERSION) -Properties config=$(CONFIGURATION) -OutputDirectory bin
else
$(info $(git_status_msg))
$(error Please, git_status: $(git_status), git_status_msg: $(git_status_msg), commit your changes before publishing your NuGet packages)
endif
deploy-pkg: pack
@mv bin/$(PKGFILENAME) $(NUGETSOURCE)