diff --git a/Makefile.packaging b/Makefile.packaging index 5dfed03be..c8c781986 100644 --- a/Makefile.packaging +++ b/Makefile.packaging @@ -212,5 +212,5 @@ gpg-key: ## Generate GPG public key .PHONY: release release: ## Publish tarball to the UPLOAD_URL echo "Publishing nginx-agent packages to ${UPLOAD_URL}"; \ - curl -XPOST -F "file=@$(PACKAGES_DIR)/$(TARBALL_NAME)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ - curl -XPOST -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl --fail -XPOST -F "file=@$(PACKAGES_DIR)/$(TARBALL_NAME)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \ + curl --fail -XPOST -F "file=@$(GPG_PUBLIC_KEY)" -H "Token: ${TOKEN}" ${UPLOAD_URL}; \