rough port of github pages deployer