image: ruby:3.1 variables: JEKYLL_ENV: production LC_ALL: C.UTF-8 before_script: - bundle install test: stage: test script: - bundle exec jekyll build -d test artifacts: paths: - test except: - butter-box pages: stage: deploy script: - apt-get update - apt-get install -y zip - bundle exec jekyll build -d public - cd public - zip -r ../site.zip ./ - mv ../site.zip ./site.zip # Now go build the site we actually want to deploy. - cd .. # simulate the drive being inserted - mv simulated-usb-butter.html usb-butter.html - "sed -i 's/^baseurl.*/baseurl: \"butter-box-ui\"/' _config.yml" - bundle exec jekyll build -d public artifacts: paths: - public only: - butter-box