From 6380723fbe3b11ffd3112de3414a8765069ccb49 Mon Sep 17 00:00:00 2001 From: John Hess Date: Mon, 10 Jun 2024 12:06:53 -0500 Subject: [PATCH] serve .zip --- .gitlab-ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6f29a62..1f1bffb 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,14 +24,18 @@ pages: - apt-get install -y zip - bundle exec jekyll build -d public - cd public + # Make a deployable zip based on this build. - 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 usb-butter - "sed -i 's/^baseurl.*/baseurl: \"\\/butter-box-ui\"/' _config.yml" - bundle exec jekyll build -d public + # Now move the zip into the public dir so it gets served. + - mv ../site.zip ./site.zip + - pwd + - ls -la . artifacts: paths: - public