diff --git a/Makefile b/Makefile index bf0ebbe..1091fa3 100644 --- a/Makefile +++ b/Makefile @@ -78,10 +78,8 @@ publish: theme: "$(PELICANTHEME)" --install "$(THEMEDIR)" --verbose -gitlab: html - test -d "$(OUTPUTDIR)" &&\ - mkdir -p public &&\ - rm -rf public/* &&\ - cp -r "$(OUTPUTDIR)"/* public/ +github: publish + ghp-import -m "Generate Pelican site" -b $(GITHUB_PAGES_BRANCH) "$(OUTPUTDIR)" + git push -f origin $(GITHUB_PAGES_BRANCH) .PHONY: html help clean regenerate serve serve-global devserver publish github