From 435beadca3fd7e97cb901ac4dcea1c63d1483809 Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 19 Aug 2021 20:50:32 -0700 Subject: [PATCH] doc: update gitlab pipeline --- .gitlab-ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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