diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a1e7c561de88f329d7c6077c1c3171e6a3b3e341..088177b20e1835804120e3cf5d8f4bdee70d34aa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,4 +1,4 @@ -image: node:8.11.2 +image: node:10.15.3 cache: paths: @@ -6,7 +6,8 @@ cache: before_script: - npm install hexo-cli -g - - npm install + - test -e package.json && npm install + - hexo generate pages: script: diff --git a/README.md b/README.md index 25667ffabc3a42a940249b32b30d4059ff6b6067..a04cf522bc49a5c9c881675511990e014cf0ecf7 100644 --- a/README.md +++ b/README.md @@ -27,22 +27,25 @@ This project's static Pages are built by [GitLab CI][ci], following the steps defined in [`.gitlab-ci.yml`](.gitlab-ci.yml): ``` -image: node:8.11.2 +image: node:10.15.3 -pages: - cache: - paths: +cache: + paths: - node_modules/ - script: +before_script: - npm install hexo-cli -g - - npm install - - hexo deploy + - test -e package.json && npm install + - hexo generate + +pages: + script: + - hexo generate artifacts: paths: - - public + - public only: - - master + - master ``` ## Building locally