Skip to content

Commit 8a03232

Browse files
committed
build: .next 디렉토리 압축하여 아티팩트 업로드
1 parent 8def480 commit 8a03232

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

.github/workflows/depoly-production.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,21 @@ jobs:
4242
run: yarn build
4343
working-directory: ${{ env.WORKING_DIRECTORY }}
4444

45-
- name: List build output (for debugging)
46-
run: |
47-
echo "Listing contents of ${{ env.WORKING_DIRECTORY }}/.next directory:"
48-
ls -la ${{ env.WORKING_DIRECTORY }}/.next
45+
- name: Archive .next directory
46+
run: tar -czf next-build.tar.gz -C ${{ env.WORKING_DIRECTORY }} .next
4947

50-
- name: Upload Build Artifacts (.next)
48+
- name: Upload Build Artifact
5149
uses: actions/upload-artifact@v4
5250
with:
53-
name: mosu-app-build
54-
path: ${{ github.workspace }}/${{ env.WORKING_DIRECTORY }}/.next
51+
name: mosu-app-build-archive
52+
path: next-build.tar.gz
5553
if-no-files-found: error
5654

5755
- name: Upload Public Directory
5856
uses: actions/upload-artifact@v4
5957
with:
6058
name: mosu-app-public
61-
path: ${{ github.workspace }}/${{ env.WORKING_DIRECTORY }}/public/
59+
path: ${{ env.WORKING_DIRECTORY }}/public/
6260
if-no-files-found: error
6361

6462
approve:
@@ -78,18 +76,20 @@ jobs:
7876
id-token: write
7977
contents: read
8078
steps:
81-
- name: Download Build Artifacts
79+
- name: Download Build Artifact
8280
uses: actions/download-artifact@v4
8381
with:
84-
name: mosu-app-build
85-
path: ./.next
82+
name: mosu-app-build-archive
8683

8784
- name: Download Public Directory
8885
uses: actions/download-artifact@v4
8986
with:
9087
name: mosu-app-public
9188
path: ./public
9289

90+
- name: Extract Build Artifact
91+
run: tar -xzf next-build.tar.gz
92+
9393
- name: Configure AWS Credentials
9494
uses: aws-actions/configure-aws-credentials@v4
9595
with:

0 commit comments

Comments
 (0)