Skip to content

Commit bf18519

Browse files
Update nextjs.yml
1 parent 211a5c9 commit bf18519

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nextjs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,15 @@ jobs:
7878
run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }}
7979
- name: Build with Next.js
8080
run: ${{ steps.detect-package-manager.outputs.runner }} next build
81+
- name: Prepare Deployment
82+
run: |
83+
mkdir -p deploy
84+
cp -r .next/static/* deploy/
85+
cp .next/server/pages/en.html deploy/index.html
8186
- name: Upload artifact
8287
uses: actions/upload-pages-artifact@v3
8388
with:
84-
path: .next
89+
path: deploy
8590

8691
# Deployment job
8792
deploy:

0 commit comments

Comments
 (0)