Skip to content

Commit 02d2f5b

Browse files
committed
Update deploy workflow to preserve main site
1 parent 756f059 commit 02d2f5b

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ jobs:
1010
build-and-deploy:
1111
runs-on: ubuntu-latest
1212
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
13+
contents: write
1614

1715
steps:
1816
- name: Checkout
@@ -39,14 +37,10 @@ jobs:
3937
- name: Build
4038
run: npm run build
4139

42-
- name: Setup Pages
43-
uses: actions/configure-pages@v4
44-
45-
- name: Upload artifact
46-
uses: actions/upload-pages-artifact@v3
47-
with:
48-
path: './dist'
49-
5040
- name: Deploy to GitHub Pages
51-
id: deployment
52-
uses: actions/deploy-pages@v4
41+
uses: JamesIves/github-pages-deploy-action@v4
42+
with:
43+
folder: ./dist
44+
branch: gh-pages
45+
clean-exclude: pr-preview
46+
force: false

0 commit comments

Comments
 (0)