diff --git a/doc/deploy_ghpages.py b/doc/deploy_ghpages.py index f276f08..8086a62 100644 --- a/doc/deploy_ghpages.py +++ b/doc/deploy_ghpages.py @@ -72,10 +72,6 @@ os.chdir("gh_pages") sp.check_output("echo 'https://${GH_TOKEN}:@github.com' > .git/credentials", shell=True) sp.check_output("git add --all ./*", shell=True) -try: - sp.check_output("git commit -a -m 'travis bot build {} [ci skip]'".format(os.getenv("TRAVIS_COMMIT")), shell=True) -except: - pass #nothing to do -else: - sp.check_output("git push --force --quiet origin gh-pages", shell=True) +sp.check_output("git commit -a -m 'travis bot build {} [ci skip]'".format(os.getenv("TRAVIS_COMMIT")), shell=True) +sp.check_output("git push --force --quiet origin gh-pages", shell=True)