Files
Hexo-Butterfly/.gitlab-ci.yml
T

16 lines
495 B
YAML

# 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
deploy via lftp:
stage: deploy
script:
- 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