Skip to content

Commit f2522ca

Browse files
committed
fix: ensure clean deployment for pr preview
1 parent fc889fc commit f2522ca

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@ jobs:
8484
# Check if it's an org page (owner.github.io)
8585
if [[ "${REPO_NAME,,}" == "${OWNER,,}.github.io" ]]; then
8686
BASE_PATH="/pr-$PR_NUM/"
87-
FULL_URL="https://${OWNER,,}.github.io/pr-$PR_NUM/"
87+
FULL_URL="https://$OWNER.github.io/pr-$PR_NUM/"
8888
else
8989
BASE_PATH="/$REPO_NAME/pr-$PR_NUM/"
90-
FULL_URL="https://${OWNER,,}.github.io/$REPO_NAME/pr-$PR_NUM/"
90+
FULL_URL="https://$OWNER.github.io/$REPO_NAME/pr-$PR_NUM/"
9191
fi
9292
9393
echo "base_path=$BASE_PATH" >> $GITHUB_OUTPUT
@@ -104,6 +104,7 @@ jobs:
104104
branch: gh-pages-pr-previews
105105
folder: build
106106
target-folder: pr-${{ inputs.pr_number }}
107+
clean: true
107108

108109
- name: Comment Preview URL
109110
uses: marocchino/sticky-pull-request-comment@v2

0 commit comments

Comments
 (0)