doc: update .gitlab-ci.yml

This commit is contained in:
Leon Xu committed 2021-08-27 06:33:01 +00:00
1 parent 907ca8a66a
commit 2059131144
1 file changed
+2 -2
+2 -2
View File
@@ -20,9 +20,9 @@ deploy via lftp:
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 local-folder/ destination-folder/; bye"
- 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:
- public
only:
- master # this job will affect only the 'master' branch
- master # this job will affect only the 'master' branch