Files
Hexo-Butterfly/.gitlab-ci.yml
T

14 lines
359 B
YAML

deploy to website:
stage: deploy
# requiring the environment of latest NodeJS version
image: node:latest
before_script:
- npm i -g hexo-cli
- npm i
script:
- hexo generate # Deploy generate hexo files
- hexo deploy # Deploy generated files to server
only:
- master # this job will affect only the 'master' branch