File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 5252 bundle install --jobs 4 --retry 3
5353
5454 - name : Build Jekyll site
55- run : bundle exec jekyll build
55+ run : |
56+ # Check if this is a project page (repo name != owner.github.io)
57+ REPO_NAME="${GITHUB_REPOSITORY#*/}"
58+ OWNER="${GITHUB_REPOSITORY_OWNER}"
59+ if [[ "$REPO_NAME" != "${OWNER}.github.io" ]]; then
60+ echo "Building for project page: baseurl=/${REPO_NAME}"
61+ bundle exec jekyll build --baseurl "/${REPO_NAME}"
62+ else
63+ echo "Building for user/org page: no baseurl"
64+ bundle exec jekyll build
65+ fi
5666 env :
5767 JEKYLL_ENV : production
5868
Original file line number Diff line number Diff line change 1+ # =============================================
2+ # Test Environment Configuration Override
3+ # For deployment to: awesome-doge.github.io/cypherpunks-core.github.io
4+ # =============================================
5+
6+ # Override baseurl for project page deployment
7+ baseurl : " /cypherpunks-core.github.io"
8+ url : " https://awesome-doge.github.io"
You can’t perform that action at this time.
0 commit comments