|
|
@@ -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 $*
|