Skip to content

Commit 46df612

Browse files
Fix deploy.yml: preserve preview directories on main deploy
Without keep_files: true, peaceiris/actions-gh-pages replaces the entire gh-pages branch on every main push, wiping any preview/pr-N/ subdirectories deployed by the PR preview workflow.
1 parent e19dd94 commit 46df612

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ jobs:
2626
with:
2727
github_token: ${{ secrets.GITHUB_TOKEN }}
2828
publish_dir: ./_site
29+
keep_files: true

0 commit comments

Comments
 (0)