Skip to content
Snippets Groups Projects
Commit dd3aca90 authored by Kwangjin Lee's avatar Kwangjin Lee
Browse files

Update 3 files

- /build-page.sh
- /.gitlab-ci.yml
- /_config.yml
parent 59235b07
No related branches found
No related tags found
1 merge request!10merge for publish
Pipeline #245068 passed
......@@ -5,13 +5,12 @@ stages:
- deploy
variables:
JEKYLL_ENV: production
LC_ALL: C.UTF-8
build-page:
stage: build
variables:
JEKYLL_ENV: production
JEKYLL_ENV: ${{ CI_COMMIT_BRANCH == "publish" && "production" || "development" }}
before_script:
- gem install bundler
- bundle install
......@@ -77,4 +76,4 @@ deploy-production:
url: https://mude.citg.tudelft.nl/2024
rules:
- if: $CI_COMMIT_BRANCH == "publish" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish"
when: always
when: always
\ No newline at end of file
......@@ -97,4 +97,7 @@ compress_html:
endings: all
startings: []
blanklines: false
profile: false
\ No newline at end of file
profile: false
is_draft: true
draft_banner: "This is the DRAFT version of the MUDE 2024 website. Content may change frequently."
\ No newline at end of file
......@@ -7,7 +7,7 @@ PAGE_ROOT=$(echo "$PAGE_ROOT" | sed 's:/*$::')
if [ "$IS_PUBLISH_DEPLOYMENT" = true ]; then
echo "Using publish deployment strategy"
# Remove the baner which identifies the book as a draft
# Remove the banner which identifies the book as a draft
if ! command -v yq &>/dev/null; then
echo "yq could not be found, the draft banner cannot be removed"
echo "Please install yq (with APT or via https://github.com/mikefarah/yq#install) and try again"
......@@ -17,7 +17,15 @@ if [ "$IS_PUBLISH_DEPLOYMENT" = true ]; then
fi
else
echo "Using draft deployment strategy"
# Set is_draft to true for draft deployments
yq -i '.is_draft = true' _config.yml
fi
echo "Publishing to page root: \"$PAGE_ROOT\""
bundle exec jekyll build -d public -b "$PAGE_ROOT"
echo "Config file contents after modification:"
cat _config.yml
echo "Publishing to page root: \"$PAGE_ROOT\""
bundle exec jekyll build -d public -b "$PAGE_ROOT" --config _config.yml
echo "Build complete. Contents of public directory:"
ls -R public
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment