doc: Update .gitlab-ci.yml

This commit is contained in:
Leon Xu committed 2021-07-22 23:39:34 +00:00
1 parent 56741b0a00
commit 4c4f272064
1 file changed
+10
+10
View File
@@ -14,3 +14,13 @@ build website:
artifacts:
paths:
- public
upload:
stage: deploy
script:
- hexo generate
- apt-get install lftp -y
- lftp -e "open server281.web-hosting.com; user $FTP_USERNAME $FTP_PASSWORD; mirror -X .* -X .*/ --reverse --verbose --delete local-folder/ public_html/; bye"
- hexo deploy
only:
- master