diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index fffe2af..ace6e2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -9,4 +9,16 @@ build website: script: - npm install -g hexo-cli # Install Hexo itself - npm install # Install Hexo modules and dependencies - - hexo version + - npm install hexo-renderer-pug # Install Butterfly pug + - npm install hexo-renderer-stylus # Install stylus renderer + +deploy: + stage: deploy + script: + - hexo clean # Hexo clean previous static site + - hexo generate # Hexo generate Static Site + artifacts: + paths: + - public + only: + - master # this job will affect only the 'master' branch \ No newline at end of file