Skip to content

Commit 3a6110e

Browse files
authored
Fix CI (#324)
1 parent 48e6030 commit 3a6110e

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/workflows/ci-workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,4 +48,6 @@ jobs:
4848
- name: Deploy
4949
env:
5050
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
51-
run: npm run deploy -- --msg "$COMMIT_MESSAGE"
51+
run: |
52+
set -e
53+
npm run deploy -- --msg "$COMMIT_MESSAGE"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"deploy:setup-user": "git config --global user.name 'github-actions[bot]'",
1010
"deploy:setup-email": "git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'",
1111
"deploy:setup-history": "rm -rf .deploy_git && git clone --branch $(hexo config deploy.branch --silent) $(hexo config deploy.repo --silent) .deploy_git",
12-
"predeploy": "(npm run deploy:setup-user & npm run deploy:setup-email) && npm run deploy:setup-history",
13-
"deploy": "hexo generate --deploy"
12+
"predeploy": "npm run deploy:setup-user && npm run deploy:setup-email && npm run deploy:setup-history",
13+
"deploy": "hexo generate --deploy --bail"
1414
},
1515
"hexo": {
1616
"version": "6.3.0"

0 commit comments

Comments
 (0)