Skip to content

Commit

Permalink
Commit unexpected.js before deploy-site when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
sunesimonsen committed Mar 5, 2015
1 parent a9cc1f3 commit 47f5fc2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Makefile
Expand Up @@ -43,7 +43,7 @@ ifneq ($(shell git describe --always --dirty | grep -- -dirty),)
endif

.PHONY: deploy-site
deploy-site: site-build git-dirty-check
deploy-site: git-dirty-check site-build
git checkout site-build
rm `git ls-files | grep -v '^\.gitignore$$'`
cp -r site-build/* .
Expand All @@ -55,12 +55,15 @@ deploy-site: site-build git-dirty-check
fi
git checkout master

.PHONY: release-%
release-%: git-dirty-check lint ${TARGETS} test-phantomjs deploy-site
git add unexpected.js site-build
.PHONY: commit-unexpected
commit-unexpected: unexpected.js
git add unexpected.js
if [ "`git status --porcelain`" != "" ]; then \
git commit -m "Build unexpected.js" ; \
fi

.PHONY: release-%
release-%: git-dirty-check lint ${TARGETS} test-phantomjs commit-unexpected deploy-site
npm version $*
@echo $* release ready to be publised to NPM
@echo Remember to push tags
Expand Down

0 comments on commit 47f5fc2

Please sign in to comment.