Skip to content

Commit

Permalink
update hexo logic
Browse files Browse the repository at this point in the history
  • Loading branch information
snowme34 committed Dec 31, 2019
1 parent 0cef72d commit 5349820
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ script:
## markdown lint
# - ./node_modules/.bin/markdownlint docs\source
## hexo
- test -n "$(git diff --name-status HEAD~1...HEAD blog)" && cp blog/themes/_config.yml blog/themes/symphony/ && npx hexo --cwd blog generate
- ./hexo-build-if-updated.sh
deploy:
provider: pages
edge: true
Expand Down
7 changes: 4 additions & 3 deletions hexo-build-if-updated.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash

set -e

# if [[ -n "$(git diff --name-status HEAD~1...HEAD blog)" ]]; then
cd blog
npm install
npx hexo generate
cp blog/themes/_config.yml blog/themes/symphony/
npx hexo --cwd blog generate
# fi

0 comments on commit 5349820

Please sign in to comment.