diff --git a/lib/publish-gh-pages.js b/lib/publish-gh-pages.js index b02cbd7c76..2f242a8359 100755 --- a/lib/publish-gh-pages.js +++ b/lib/publish-gh-pages.js @@ -135,16 +135,11 @@ const currentCommit = shell.exec('git rev-parse HEAD').stdout.trim(); shell.exec('git add --all'); -if ( - shell.exec( - `git commit -m "Deploy website" -m "Deploy website version based on ${ - currentCommit - }"` - ).code !== 0 -) { - shell.echo(`Error: Committing static website failed`); - shell.exit(1); -} +shell.exec( + `git commit -m "Deploy website" -m "Deploy website version based on ${ + currentCommit + }"` +); if (shell.exec(`git push origin ${DEPLOYMENT_BRANCH}`).code !== 0) { shell.echo('Error: Git push failed'); shell.exit(1);