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
f55a8478
Commit
f55a8478
authored
7 months ago
by
Kwangjin Lee
Browse files
Options
Downloads
Patches
Plain Diff
Update 2 files
- /build-page.sh - /.gitlab-ci.yml
parent
12ff5298
No related branches found
No related tags found
1 merge request
!10
merge for publish
Pipeline
#245064
passed
7 months ago
Stage: build
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+1
-5
1 addition, 5 deletions
.gitlab-ci.yml
build-page.sh
+10
-0
10 additions, 0 deletions
build-page.sh
with
11 additions
and
5 deletions
.gitlab-ci.yml
+
1
−
5
View file @
f55a8478
...
@@ -25,14 +25,10 @@ build-page:
...
@@ -25,14 +25,10 @@ build-page:
else
else
./build-page.sh "/draft" false
./build-page.sh "/draft" false
fi
fi
artifacts
:
artifacts
:
paths
:
paths
:
-
public
-
public
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish"
-
if
:
$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main" || $CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "publish"
when
:
always
deploy-draft
:
deploy-draft
:
stage
:
deploy
stage
:
deploy
...
...
This diff is collapsed.
Click to expand it.
build-page.sh
+
10
−
0
View file @
f55a8478
...
@@ -14,6 +14,7 @@ if [ "$IS_PUBLISH_DEPLOYMENT" = true ]; then
...
@@ -14,6 +14,7 @@ if [ "$IS_PUBLISH_DEPLOYMENT" = true ]; then
else
else
cp
_config.yml _config.yml.bak
cp
_config.yml _config.yml.bak
yq
-i
'.is_draft = false'
_config.yml
yq
-i
'.is_draft = false'
_config.yml
echo
"is_draft set to false in _config.yml"
fi
fi
else
else
echo
"Using draft deployment strategy"
echo
"Using draft deployment strategy"
...
@@ -24,8 +25,17 @@ else
...
@@ -24,8 +25,17 @@ else
else
else
cp
_config.yml _config.yml.bak
cp
_config.yml _config.yml.bak
yq
-i
'.is_draft = true'
_config.yml
yq
-i
'.is_draft = true'
_config.yml
echo
"is_draft set to true in _config.yml"
fi
fi
fi
fi
echo
"Publishing to page root:
\"
$PAGE_ROOT
\"
"
echo
"Publishing to page root:
\"
$PAGE_ROOT
\"
"
bundle
exec
jekyll build
-d
public
-b
"
$PAGE_ROOT
"
bundle
exec
jekyll build
-d
public
-b
"
$PAGE_ROOT
"
# Check the build result
if
[
$?
-ne
0
]
;
then
echo
"Jekyll build failed"
exit
1
else
echo
"Jekyll build succeeded"
fi
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