Skip to content

Commit

Permalink
Add release target.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 22, 2014
1 parent 827fa90 commit 63c7057
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Makefile
Expand Up @@ -18,9 +18,12 @@ help:
@echo "================"
@echo ""
@echo "release"
@echo " Create a new release of CakePHP. Requires the VERSION parameter."
@echo " Create a new release of CakePHP. Requires the VERSION and GITHUB_USER parameter."
@echo " Packages up a new app skeleton tarball and uploads it to github."
@echo ""
@echo "package"
@echo " Build the app package with all its dependencies."
@echo ""
@echo "publish"
@echo " Publish the dist/cakephp-VERSION.zip to github."
@echo ""
Expand Down Expand Up @@ -103,7 +106,7 @@ dist/cakephp-$(VERSION).zip: composer.phar


# Tasks to publish zipballs to github.
.PHONY: publish
.PHONY: publish release

publish: guard-VERSION guard-GITHUB_USER dist/cakephp-$(VERSION).zip
@echo "Creating draft release for $(VERSION). prerelease=$(PRERELEASE)"
Expand All @@ -126,3 +129,6 @@ publish: guard-VERSION guard-GITHUB_USER dist/cakephp-$(VERSION).zip
# Cleanup files.
rm release.json
rm id.txt

# Top level alias for doing a release.
release: guard-VERSION guard-GITHUB_USER package publish

0 comments on commit 63c7057

Please sign in to comment.