Skip to content

Commit 33b7411

Browse files
committed
💚 Fix prod deployment wiping PR previews
See peaceiris/actions-gh-pages#718 (comment)
1 parent c3388d8 commit 33b7411

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

Diff for: .github/workflows/deploy.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013
permissions:
@@ -28,8 +31,9 @@ jobs:
2831
run: BUILD_COMMIT=${{ github.sha }} BASE_PATH=/cigale npm run build
2932

3033
- name: Deploy to GitHub Pages
31-
uses: peaceiris/actions-gh-pages@v4
34+
uses: JamesIves/github-pages-deploy-action@v4
3235
with:
33-
github_token: ${{ secrets.GITHUB_TOKEN }}
34-
publish_dir: ./public
35-
publish_branch: gh-pages
36+
folder: public # The folder the action should deploy.
37+
force: yes
38+
clean: no
39+
clean-exclude: _pullrequests/

0 commit comments

Comments
 (0)