Skip to content

Commit aca0607

Browse files
authored
Fix "404 Error" on project urls console
1 parent 1d9ffa2 commit aca0607

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ jobs:
4444
npm install
4545
4646
# Add homepage for GitHub Pages
47-
homepage="https://$GITHUB_REPOSITORY_OWNER.github.io/$project"
47+
repo_name="${GITHUB_REPOSITORY#*/}"
48+
homepage="https://$GITHUB_REPOSITORY_OWNER.github.io/$repo_name/$project"
4849
npx json -I -f package.json -e "this.homepage=\"$homepage\""
4950
5051
npm run build

0 commit comments

Comments
 (0)