Skip to content

Commit cbe9490

Browse files
committed
Deploy to subfolder in PRs
1 parent 8115356 commit cbe9490

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/update.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ jobs:
2525
uses: JamesIves/github-pages-deploy-action@v4
2626
with:
2727
folder: build
28+
clean: false
29+
git-config-name: github-actions[bot]
30+
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
31+
- name: Deploy to subdirectory if pull request 🚀
32+
if: github.event_name == 'pull_request'
33+
uses: JamesIves/github-pages-deploy-action@v4
34+
with:
35+
folder: build
36+
target-folder: ${{ github.ref_name }}
2837
clean: true
2938
git-config-name: github-actions[bot]
3039
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com

0 commit comments

Comments
 (0)