From ca33da57733eaa2b4347550f12933c763ec2105a Mon Sep 17 00:00:00 2001 From: Leon Xu <6479451-leonxu260@users.noreply.gitlab.com> Date: Tue, 15 Mar 2022 23:05:49 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9e71271..1ba1b2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,7 +26,8 @@ deploy to website: - npm install -g hexo-cli # Install hexo itself - npm install # Install Hexo modules and dependencies - hexo clean # Hexo clean previous static site - - lftp -u $FTP_USERNAME,$FTP_PASSWORD server281.web-hosting.com -e "mirror /home/$FTP_USERNAME/public_html/ -R -p site dev ; quit" - - hexo deploy # Deploy hexo to domain + - hexo generate # Deploy hexo to domain + - lftp -e "mirror -R /public $ FTP_REMOTE_PATH" -u $FTP_USERNAME,$FTP_PASSWORD $FTP_HOST + only: - master # this job will affect only the 'master' branch \ No newline at end of file