Upload zip file.
This commit is contained in:
21
Makefile.gh-pages
Normal file
21
Makefile.gh-pages
Normal file
@@ -0,0 +1,21 @@
|
||||
.PHONY: all
|
||||
|
||||
.SUFFIXES:
|
||||
|
||||
GH_PAGES = ../gh-pages
|
||||
|
||||
all:
|
||||
date +%D | zip -z cc65
|
||||
ifdef GH_TOKEN
|
||||
git clone --branch=gh-pages https://$(GH_TOKEN)@github.com/oliverschmidt/cc65.git $(GH_PAGES)
|
||||
cd $(GH_PAGES) && git config user.name "Oliver Schmidt"
|
||||
cd $(GH_PAGES) && git config user.email "ol.sc@web.de"
|
||||
cd $(GH_PAGES) && git config push.default simple
|
||||
cd $(GH_PAGES) && $(RM) -r doc download
|
||||
cd $(GH_PAGES) && mkdir doc download
|
||||
cp html/*.* $(GH_PAGES)/doc
|
||||
cp cc65.zip $(GH_PAGES)/download/cc65-snapshot.zip
|
||||
cd $(GH_PAGES) && git add -A doc download
|
||||
cd $(GH_PAGES) && git commit -m "Updated from commit $(TRAVIS_COMMIT)."
|
||||
cd $(GH_PAGES) && git push
|
||||
endif
|
||||
Reference in New Issue
Block a user