only commiting to gh-pages if script is successful