refactoring gh-pages deployment