Browse Source

Update formatting to improve compatibility

Some versions of make don't like the multiline json.
Mark Story 5 years ago
parent
commit
5f36d7877f
1 changed files with 2 additions and 10 deletions
  1. 2 10
      Makefile

+ 2 - 10
Makefile

@@ -143,12 +143,7 @@ package: clean dist/cakephp-$(DASH_VERSION).zip
 
 publish: guard-VERSION dist/cakephp-$(DASH_VERSION).zip
 	@echo "Creating draft release for $(VERSION). prerelease=$(PRERELEASE)"
-	curl $(AUTH) -XPOST $(API_HOST)/repos/$(OWNER)/cakephp/releases -d '{
-		"tag_name": "$(VERSION)",
-		"name": "CakePHP $(VERSION) released",
-		"draft": true,
-		"prerelease": $(PRERELEASE)
-	}' > release.json
+	curl $(AUTH) -XPOST $(API_HOST)/repos/$(OWNER)/cakephp/releases -d '{"tag_name": "$(VERSION)", "name": "CakePHP $(VERSION) released", "draft": true, "prerelease": $(PRERELEASE)}' > release.json
 	# Extract id out of response json.
 	php -r '$$f = file_get_contents("./release.json"); \
 		$$d = json_decode($$f, true); \
@@ -180,10 +175,7 @@ component-%:
 tag-component-%: component-% guard-VERSION guard-GITHUB_TOKEN
 	@echo "Creating tag for the $* component"
 	git checkout $*
-	curl $(AUTH) -XPOST $(API_HOST)/repos/$(OWNER)/$*/git/refs -d '{
-		"ref": "refs\/tags\/$(VERSION)",
-		"sha": "$(shell git rev-parse $*)"
-	}'
+	curl $(AUTH) -XPOST $(API_HOST)/repos/$(OWNER)/$*/git/refs -d '{"ref": "refs\/tags\/$(VERSION)", "sha": "$(shell git rev-parse $*)"}'
 	git checkout $(CURRENT_BRANCH) > /dev/null
 	git branch -D $*
 	git remote rm $*