]> git.sur5r.net Git - cc65/blob - Makefile.gh-pages
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / Makefile.gh-pages
1 .PHONY: all
2
3 .SUFFIXES:
4
5 GH_PAGES = ../gh-pages
6
7 all:
8         echo $(TRAVIS_COMMIT) | zip -z cc65
9 ifdef GH_TOKEN
10         git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/cc65/cc65.git $(GH_PAGES)
11         cd $(GH_PAGES) && git config user.name "Oliver Schmidt"
12         cd $(GH_PAGES) && git config user.email "ol.sc@web.de"
13         cd $(GH_PAGES) && git config push.default simple
14         cd $(GH_PAGES) && $(RM) -r doc download
15         cd $(GH_PAGES) && mkdir doc download
16         cp html/*.* $(GH_PAGES)/doc
17         cp cc65.zip $(GH_PAGES)/download/cc65-snapshot-win32.zip
18         cd $(GH_PAGES) && git add -A doc download
19         cd $(GH_PAGES) && git commit -m "Updated from commit $(TRAVIS_COMMIT)."
20         cd $(GH_PAGES) && git push
21 endif