25 lines
257 B
YAML
25 lines
257 B
YAML
# Deploy pages with hexo
|
|
image: node:4.2.2
|
|
|
|
pages:
|
|
stage: deploy
|
|
|
|
cache:
|
|
paths:
|
|
- node_modules/
|
|
|
|
script:
|
|
- npm install hexo-cli -g
|
|
- npm install
|
|
- hexo generate
|
|
|
|
artifacts:
|
|
paths:
|
|
- public
|
|
|
|
only:
|
|
- pages
|
|
|
|
tags:
|
|
- pages
|