Skip to content

Commit 5e37bf6

Browse files
committed
fix(ci): use standalone build and dereference symlinks
1 parent 851708a commit 5e37bf6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/cms_cms.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,13 @@ jobs:
3737
pnpm run build --if-present
3838
pnpm run test
3939
40-
- name: Zip artifact for deployment
41-
run: zip -r --symlinks release.zip .
40+
- name: Prepare standalone build
41+
run: |
42+
mkdir -p .next/standalone/.next/static
43+
cp -r public .next/standalone/public
44+
cp -r .next/static .next/standalone/.next/static
45+
cd .next/standalone
46+
zip -r ../../release.zip .
4247
4348
- name: Upload artifact for deployment job
4449
uses: actions/upload-artifact@v4

.github/workflows/main_cms.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,13 @@ jobs:
3838
pnpm run build
3939
pnpm run test
4040
41-
- name: Zip artifact for deployment
42-
run: zip -r --symlinks release.zip .
41+
- name: Prepare standalone build
42+
run: |
43+
mkdir -p .next/standalone/.next/static
44+
cp -r public .next/standalone/public
45+
cp -r .next/static .next/standalone/.next/static
46+
cd .next/standalone
47+
zip -r ../../release.zip .
4348
4449
- name: Upload artifact for deployment job
4550
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)