Here’s how I got rjsilk/vagrant-github-pages to work to publish this site back in 2015:

#write to synced folder /vagrant/files/.gitconfig
cat > /vagrant/files/.gitconfig
[user]
  name = Richard Chen
  email = 
[color]
  ui = auto

#build the environment
sudo apt-get update && sudo apt-get -y install build-essential git curl nodejs
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --rails
source /usr/local/rvm/scripts/rvm
sudo gem install github-pages --no-ri --no-rdoc

#customize for user, inside vagrant ssh
cd /vagrant
git submodule add git@github.com:4richardchen/4richardchen.github.com.git
cat > ~/.bash_profile
cp /vagrant/files/.gitconfig /home/vagrant/.gitconfig
cd /vagrant/4richardchen.github.com.git

#start working

I’ve since moved to Docker.