Skip to content

Commit bbc51b8

Browse files
authored
Update publish.sh
1 parent 5b66204 commit bbc51b8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

example/publish.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ cd ..
2424
npm i
2525
npm run export
2626

27-
ls out
2827
cp -a out/. gh-pages/
2928

3029
cd gh-pages
@@ -33,7 +32,7 @@ echo "OK========================================================================
3332
git config user.name "$COMMIT_USER_NAME"
3433
git config user.email "$COMMIT_USER_EMAIL"
3534
git add --all
36-
git commit -m "Deploy to GitHub Pages: $SHA"
35+
git commit -m "Deploy to GitHub Pages: $SHA" || exit
3736

3837
git push
3938

0 commit comments

Comments
 (0)