Skip to content

Commit

Permalink
updated deploy method
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbuffalo committed Oct 30, 2015
1 parent 991d8e5 commit 4a6315a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ html/%.html: %.tex
(cat template.tex; cat $<; echo "\\\\end{document}") | pandoc -s --mathjax --toc --css css/style.css --smart --to html5 --from latex > $@

deploy: html/
# this is from http://stevenclontz.com/blog/2014/05/08/git-subtree-push-for-deployment/
git subtree push --prefix html origin gh-pages
# using https://github.com/X1011/git-directory-deploy
./deploy.sh
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ This pushes `html/` with `git subtree`, e.g. like

$ git subtree push --prefix html upstream gh-pages

For reference, this clever way of pushing a single subdirectory to a branch is
from [this blog
post](http://stevenclontz.com/blog/2014/05/08/git-subtree-push-for-deployment/).
For reference, [this](https://github.com/X1011/git-directory-deploy)
`deploy.sh` is used to deploy to the `gh-pages` branch. I've modified this
version accordingly (e.g. works with BSD `ls`, by using `-A` instead of
`--almost-all`)

0 comments on commit 4a6315a

Please sign in to comment.