Skip to content

Commit

Permalink
Better release process
Browse files Browse the repository at this point in the history
  • Loading branch information
parente committed Jan 3, 2016
1 parent 6a3b661 commit 3307b5f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Makefile
Expand Up @@ -26,10 +26,14 @@ build:
$(IMAGE) python generate.py

release: build
@git checkout gh-pages
@mv _output/* .
@rm -r _output
@git commit -m "Release $(GIT_VERSION)"
@cd _output && \
git init && \
git remote add upstream 'git@github.com:parente/blog.git' && \
git fetch --depth=1 upstream gh-pages && \
git reset upstream/gh-pages && \
git add -A . && \
git commit -m "Release $(GIT_VERSION)" && \
git push upstream HEAD:gh-pages

dev:
@docker run -it --rm \
Expand Down

0 comments on commit 3307b5f

Please sign in to comment.