Skip to content

Commit c24c0bc

Browse files
docs: add test file for preview verification (#2)
* docs: add test file for preview verification * fix: force lowercase owner in preview url * fix: ensure clean deployment for pr preview * fix: deploy previews to gh-pages branch * fix: explicit git config for deploy action
1 parent 39b4c91 commit c24c0bc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/publish-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,13 @@ jobs:
101101
- name: Deploy PR Preview
102102
uses: JamesIves/github-pages-deploy-action@v4
103103
with:
104-
branch: gh-pages-pr-previews
104+
token: ${{ secrets.GITHUB_TOKEN }}
105+
branch: gh-pages
105106
folder: build
106107
target-folder: pr-${{ inputs.pr_number }}
108+
clean: true
109+
git-config-name: github-actions[bot]
110+
git-config-email: github-actions[bot]@users.noreply.github.com
107111

108112
- name: Comment Preview URL
109113
uses: marocchino/sticky-pull-request-comment@v2

preview-test.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This is a test change to verify the PR preview workflow.

0 commit comments

Comments
 (0)