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
bb76ccc0
Commit
bb76ccc0
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
dd3aca90
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!10
merge for publish
Pipeline
#245069
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
+6
-5
6 additions, 5 deletions
.gitlab-ci.yml
_config.yml
+2
-2
2 additions, 2 deletions
_config.yml
build-page.sh
+6
-13
6 additions, 13 deletions
build-page.sh
with
14 additions
and
20 deletions
.gitlab-ci.yml
+
6
−
5
View file @
bb76ccc0
...
...
@@ -14,17 +14,18 @@ build-page:
before_script
:
-
gem install bundler
-
bundle install
-
wget https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 --no-verbose -O /usr/local/bin/yq
-
chmod +x /usr/local/bin/yq
-
chmod +x ./build-page.sh
script
:
-
|
if [ "$CI_COMMIT_BRANCH" == "publish"
] || [ "$CI_COMMIT_BRANCH" == "main"
]; then
echo "Running on
branch $CI_COMMIT_BRANCH
"
if [ "$CI_COMMIT_BRANCH" == "publish" ]; then
echo "Running on
publish branch
"
./build-page.sh "/" true
elif [ "$CI_COMMIT_BRANCH" == "main" ]; then
echo "Running on main branch"
./build-page.sh "/2024/draft" false
else
echo "Running on other branches"
./build-page.sh /draft false
./build-page.sh
"
/draft
"
false
fi
artifacts
:
paths
:
...
...
This diff is collapsed.
Click to expand it.
_config.yml
+
2
−
2
View file @
bb76ccc0
...
...
@@ -99,5 +99,5 @@ compress_html:
blanklines
:
false
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
# 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
+
6
−
13
View file @
bb76ccc0
...
...
@@ -7,25 +7,18 @@ PAGE_ROOT=$(echo "$PAGE_ROOT" | sed 's:/*$::')
if
[
"
$IS_PUBLISH_DEPLOYMENT
"
=
true
]
;
then
echo
"Using publish deployment strategy"
# 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"
else
cp
_config.yml _config.yml.bak
yq
-i
'.is_draft = false'
_config.yml
fi
CONFIG_FILE
=
"_config.yml"
else
echo
"Using draft deployment strategy"
# Set is_draft to true for draft deployments
yq
-i
'.is_draft = true'
_config.yml
CONFIG_FILE
=
"_config_draft.yml"
fi
echo
"Config file contents after modification:"
cat
_config.yml
echo
"Using config file:
$CONFIG_FILE
"
echo
"Config file contents:"
cat
"
$CONFIG_FILE
"
echo
"Publishing to page root:
\"
$PAGE_ROOT
\"
"
bundle
exec
jekyll build
-d
public
-b
"
$PAGE_ROOT
"
--config
_config.yml
bundle
exec
jekyll build
-d
public
-b
"
$PAGE_ROOT
"
--config
"
$CONFIG_FILE
"
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