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

Update .gitlab-ci.yml file

parent c96d9659
No related branches found
No related tags found
1 merge request!3Main
Pipeline #244997 passed
......@@ -21,8 +21,11 @@ build-page:
- |
if [[ "$CI_COMMIT_BRANCH" == "main" ]]; then
JEKYLL_ENV=production bundle exec jekyll build --config _config_draft.yml --destination public
if [[ "$CI_COMMIT_BRANCH" == "publish" ]]; then
elif [[ "$CI_COMMIT_BRANCH" == "publish" ]]; then
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
- echo "Listing contents of public directory:"
- ls -laR public
......
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