Makefile: cleanup bin/ directory at the beginning of make publish-release command

This is needed in order to prevent from non-build artifacts to be uploaded to Github release page
This commit is contained in:
Aliaksandr Valialkin 2023-08-29 13:10:27 +02:00
parent 8b636350f2
commit 5be882cba1
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -169,6 +169,7 @@ vmutils-crossbuild: \
vmutils-windows-amd64 vmutils-windows-amd64
publish-release: publish-release:
rm -rf bin/*
git checkout $(TAG) && LATEST_TAG=stable $(MAKE) release publish && \ git checkout $(TAG) && LATEST_TAG=stable $(MAKE) release publish && \
git checkout $(TAG)-cluster && LATEST_TAG=cluster-stable $(MAKE) release publish && \ git checkout $(TAG)-cluster && LATEST_TAG=cluster-stable $(MAKE) release publish && \
git checkout $(TAG)-enterprise && LATEST_TAG=enterprise-stable $(MAKE) release publish && \ git checkout $(TAG)-enterprise && LATEST_TAG=enterprise-stable $(MAKE) release publish && \