Skip to content

Commit 12f9eec

Browse files
committed
fix deploy url
Signed-off-by: Aritra Dey <[email protected]>
1 parent 1a31f1a commit 12f9eec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/publish-docs.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,16 +38,15 @@ jobs:
3838
OWNER="${{ github.repository_owner }}"
3939
4040
if [[ "$REPO" == "$OWNER.github.io" ]]; then
41-
# User/org GitHub Pages repo
4241
echo "BASE_URL=/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
4342
echo "URL=https://$OWNER.github.io" >> $GITHUB_ENV
4443
else
45-
# Normal project repo (fork or upstream)
4644
echo "BASE_URL=/$REPO/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
47-
echo "URL=https://$OWNER.github.io" >> $GITHUB_ENV
45+
echo "URL=https://$OWNER.github.io/$REPO" >> $GITHUB_ENV
4846
fi
4947
5048
49+
5150
- name: Install and Build
5251
run: npm ci && npm run build
5352
env:

0 commit comments

Comments
 (0)