From 65b76ed39343c12b009347dfae40cce419f61ffd Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Thu, 26 Aug 2021 23:48:17 -0700 Subject: [PATCH] doc: udpate .gitlab-ci.yml --- .gitlab-ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 87e9387..e0aeddb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,12 +1,21 @@ # Using the latest of ubuntu image image: ubuntu:latest before_script: - - apt-get update -qy # Check for update - - apt-get install -y lftp # Install lftp + - apt update -qy # Check for update + - apt install -y lftp # Install lftp + - apt install curl # Install curl + - curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - + - apt install nodejs # Install NodeJS + - npm install -g hexo-cli # Install Hexo itself + - npm install # Install Hexo modules and dependencies + - npm install hexo-renderer-pug # Install Butterfly pug + - npm install hexo-renderer-stylus # Install stylus renderer deploy via lftp: stage: deploy script: + - hexo clean # Hexo clean previous static site + - hexo generate # Hexo generate Static Site - lftp -e "set ssl:verify-certificate no; open $FTP_HOST; user $FTP_USERNAME $FTP_PASSWORD $FTP_PORT; mirror -X .* -X .*/ --reverse --verbose --delete public/ $FTP_REMOTE_PATH/; bye" artifacts: paths: