Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2024-website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MUDE
2024-website
Commits
dd3aca90
Commit
dd3aca90
authored
7 months ago
by
Kwangjin Lee
Browse files
Options
Downloads
Patches
Plain Diff
Update 3 files
- /build-page.sh - /.gitlab-ci.yml - /_config.yml
parent
59235b07
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
merge for publish
Pipeline
#245068
passed
7 months ago
Stage: build
Stage: deploy
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitlab-ci.yml
+2
-3
2 additions, 3 deletions
.gitlab-ci.yml
_config.yml
+4
-1
4 additions, 1 deletion
_config.yml
build-page.sh
+11
-3
11 additions, 3 deletions
build-page.sh
with
17 additions
and
7 deletions
.gitlab-ci.yml
+
2
−
3
View file @
dd3aca90
...
...
@@ -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
This diff is collapsed.
Click to expand it.
_config.yml
+
4
−
1
View file @
dd3aca90
...
...
@@ -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
This diff is collapsed.
Click to expand it.
build-page.sh
+
11
−
3
View file @
dd3aca90
...
...
@@ -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 ban
n
er 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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment