File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 6161 BASE_PATH : ${{ steps.vars.outputs.subpath }}
6262 run : |
6363 # Compute a single deploy base that always ends with a trailing slash
64- # Use package name from package.json as base so built assets match paths
65- REPO_NAME=$(node -e "console.log(require('./package.json').name)")
64+ # Use repository name as base (strip organization) so site is published under the repo path
65+ REPO_NAME=${GITHUB_REPOSITORY#*/}
6666 if [ -n "$BASE_PATH" ]; then
6767 DEPLOY_BASE="/${REPO_NAME}/${BASE_PATH}/"
6868 else
@@ -133,8 +133,8 @@ jobs:
133133 BASE_PATH : ${{ steps.vars.outputs.subpath }}
134134 run : |
135135 # Compute a single deploy base that always ends with a trailing slash
136- # Use package name from package.json as base so built assets match paths
137- REPO_NAME=$(node -e "console.log(require('./package.json').name)")
136+ # Use repository name as base (strip organization) so site is published under the repo path
137+ REPO_NAME=${GITHUB_REPOSITORY#*/}
138138 if [ -n "$BASE_PATH" ]; then
139139 DEPLOY_BASE="/${REPO_NAME}/${BASE_PATH}/"
140140 else
You can’t perform that action at this time.
0 commit comments