We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a31f1a commit 12f9eecCopy full SHA for 12f9eec
.github/workflows/publish-docs.yml
@@ -38,16 +38,15 @@ jobs:
38
OWNER="${{ github.repository_owner }}"
39
40
if [[ "$REPO" == "$OWNER.github.io" ]]; then
41
- # User/org GitHub Pages repo
42
echo "BASE_URL=/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
43
echo "URL=https://$OWNER.github.io" >> $GITHUB_ENV
44
else
45
- # Normal project repo (fork or upstream)
46
echo "BASE_URL=/$REPO/pr-preview/pr-${{ github.event.pull_request.number }}/" >> $GITHUB_ENV
47
- echo "URL=https://$OWNER.github.io" >> $GITHUB_ENV
+ echo "URL=https://$OWNER.github.io/$REPO" >> $GITHUB_ENV
48
fi
49
50
+
51
- name: Install and Build
52
run: npm ci && npm run build
53
env:
0 commit comments