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
870f8bd9
Commit
870f8bd9
authored
7 months ago
by
Kwangjin Lee
Browse files
Options
Downloads
Patches
Plain Diff
Update .gitlab-ci.yml file
parent
2559d247
No related branches found
Branches containing commit
No related tags found
1 merge request
!4
Update 2 files
Pipeline
#245025
passed
7 months ago
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+23
-3
23 additions, 3 deletions
.gitlab-ci.yml
with
23 additions
and
3 deletions
.gitlab-ci.yml
+
23
−
3
View file @
870f8bd9
...
...
@@ -18,12 +18,32 @@ before_script:
build-page
:
stage
:
build
script
:
-
mkdir -p public
-
cp -r * public/ ||
true
-
echo $CI_COMMIT_SHA > public/version.txt
-
|
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
echo "Building draft site..."
JEKYLL_ENV=production bundle exec jekyll build --config _config_draft.yml --destination public
elif [[ "$CI_COMMIT_BRANCH" == "publish" ]]; then
echo "Building production site..."
JEKYLL_ENV=production bundle exec jekyll build --config _config.yml --destination public
else
echo "Branch is neither main nor publish. Skipping build."
exit 1
fi
-
cp _config.yml public/
-
cp _config_draft.yml public/
-
cp home.md public/
-
cp -R _includes public/
-
cp -R _layouts public/
-
cp -R _sass public/
-
cp -R assets public/
-
cp Gemfile public/
-
cp Gemfile.lock public/
-
echo "Listing contents of public directory:"
-
ls -laR public
artifacts
:
paths
:
-
public
expire_in
:
1 week
rules
:
-
if
:
$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "publish"
...
...
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