Skip to content

Commit 0fdfc0d

Browse files
committed
[fix] Building error
1 parent 3b4b7a4 commit 0fdfc0d

File tree

3 files changed

+16
-15
lines changed

3 files changed

+16
-15
lines changed

.travis.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,20 @@ cache:
1010
- node_modules
1111

1212
before_install:
13-
- export TZ=${TIME_ZONE}
13+
- export TZ=Asia/Chongqing
1414
install:
1515
- npm install
16-
- cd ${FOLDER_SOURCE}
16+
- cd source/
1717
- rm $(ls -F | grep [^/]$)
18-
- echo ${DOMAIN} > CNAME
1918
- cd ..
2019
script:
2120
- npm run build
22-
- cd ${FOLDER_TARGET}
23-
- git init
24-
- git config user.name ${UID}
25-
- git config user.email ${EMAIL}
26-
- git add .
27-
- git commit -m "${MESSAGE}"
28-
- git push --force --quiet https://${TOKEN}@${GIT_URI}.git master:${BRANCH}
21+
deploy:
22+
provider: pages
23+
on:
24+
branch: master
25+
skip_cleanup: true
26+
local_dir: public
27+
fqdn: ${DOMAIN}
28+
target_branch: master
29+
token: ${TOKEN}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
"doc": "source/_post/"
1111
},
1212
"hexo": {
13-
"version": "4.0.0"
13+
"version": "4.2.0"
1414
},
1515
"dependencies": {
16-
"hexo": "^4.0.0",
16+
"cheerio": "^1.0.0-rc.3",
17+
"hexo": "^4.2.0",
1718
"hexo-auto-category": "^0.2.0",
1819
"hexo-deployer-git": "^2.1.0",
1920
"hexo-generator-archive": "^1.0.0",
2021
"hexo-generator-category": "^1.0.0",
21-
"hexo-generator-feed": "^2.1.1",
22+
"hexo-generator-feed": "^2.2.0",
2223
"hexo-generator-index": "^1.0.0",
2324
"hexo-generator-slidehtml": "0.0.62",
2425
"hexo-generator-tag": "^1.0.0",
2526
"hexo-migrator-web": "^0.4.7",
2627
"hexo-permalink-pinyin": "^1.1.0",
27-
"hexo-pwa": "^0.1.3",
2828
"hexo-reference": "^1.0.4",
2929
"hexo-renderer-ejs": "^1.0.0",
3030
"hexo-renderer-marked": "^2.0.0",

0 commit comments

Comments
 (0)