Skip to content

Commit e2f3e41

Browse files
author
moaalk
committed
fix: switch to JamesIves/github-pages-deploy-action for reliable asset deployment
The peaceiris action was not deploying the assets directory properly. JamesIves action is more reliable for full directory deployments including all subdirectories.
1 parent 3a788b7 commit e2f3e41

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/pr-preview.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,14 @@ jobs:
4848
test -d dist/assets && echo "✓ assets directory exists" || echo "✗ assets directory missing"
4949
5050
- name: Deploy to GitHub Pages (PR Preview)
51-
uses: peaceiris/actions-gh-pages@v4
51+
uses: JamesIves/github-pages-deploy-action@v4
5252
with:
53-
github_token: ${{ secrets.GITHUB_TOKEN }}
54-
publish_dir: ./dist
55-
destination_dir: pr-${{ github.event.pull_request.number }}
56-
keep_files: true
57-
enable_jekyll: false
58-
force_orphan: false
59-
exclude_assets: ''
53+
token: ${{ secrets.GITHUB_TOKEN }}
54+
branch: gh-pages
55+
folder: dist
56+
target-folder: pr-${{ github.event.pull_request.number }}
57+
clean: false
58+
single-commit: false
6059

6160
- name: Comment PR with preview link
6261
uses: actions/github-script@v7

0 commit comments

Comments
 (0)