diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8e85e76fd645190388d86c238f545be6b2e5215e..638c183d567e18958f531e4549106c5be58ed1b0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,11 +14,17 @@ 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: - - JEKYLL_ENV=production bundle exec jekyll build --config _config.yml --destination public + - > + if [ "$CI_COMMIT_BRANCH" = "publish" ]; then + ./build_page.sh "/2024/" true + else + ./build_page.sh "/2024/draft/" false + fi - echo "Listing contents of public directory:" - ls -laR public artifacts: