--- stages: - deploy cache: paths: - vendor/ variables: LANG: "C.UTF-8" before_script: - apt-get update -qq && apt-get install -y -qq lftp rubygems - gem install bundler - bundle install --path vendor deploy: stage: deploy only: - master script: - JEKYLL_ENV=production bundle exec jekyll build - lftp -e "mirror -R -n -e _site $REM_CWD ; exit" -u "$REM_USER,$REM_PASWD" "$REM_SERVER" artifacts: paths: - _site