From a6e3c54d768db7f4c71b10dffec6d1fc20fcc37b Mon Sep 17 00:00:00 2001
From: Kwangjin Lee <k.lee-5@student.tudelft.nl>
Date: Fri, 23 Aug 2024 10:31:39 +0200
Subject: [PATCH] Update .gitlab-ci.yml file

---
 .gitlab-ci.yml | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 638c183..8e85e76 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,17 +14,11 @@ cache:
 before_script:
   - bundle config set --local path 'vendor/bundle'
   - bundle install
-  - apt-get update && apt-get install -y yq
 
 build-page:
   stage: build
   script:
-    - >
-      if [ "$CI_COMMIT_BRANCH" = "publish" ]; then
-        ./build_page.sh "/2024/" true
-      else
-        ./build_page.sh "/2024/draft/" false
-      fi
+    - JEKYLL_ENV=production bundle exec jekyll build --config _config.yml --destination public
     - echo "Listing contents of public directory:"
     - ls -laR public
   artifacts:
-- 
GitLab