Skip to content

Commit 83470f6

Browse files
committed
feat: aws cli로 설치
1 parent 9fd6d6f commit 83470f6

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

.github/workflows/deploy-fe.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ jobs:
1515
uses: actions/checkout@v4
1616

1717
- name: Setup pnpm
18-
uses: pnpm/action-setup@v4
19-
20-
- name: Setup Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.12"
18+
uses: pnpm/action-setup@v4"
2419

2520
- name: Setup Node
2621
uses: actions/setup-node@v4
@@ -40,19 +35,22 @@ jobs:
4035
VITE_API_URL: ${{ secrets.VITE_API_URL }}
4136
run: pnpm -C frontend build
4237

43-
- name: Install AWS CLI (NCP compatible)
44-
run: pip install awscli==1.15.85
38+
- name: Install AWS CLI
39+
run: |
40+
sudo apt-get update
41+
sudo apt-get install -y awscli
4542
46-
- name: Upload to NCP Object Storage
43+
- name: Deploy to NCP Object Storage
4744
env:
4845
AWS_ACCESS_KEY_ID: ${{ secrets.NCP_ACCESS_KEY }}
4946
AWS_SECRET_ACCESS_KEY: ${{ secrets.NCP_SECRET_KEY }}
5047
run: |
51-
aws s3 sync frontend/dist/ s3://${{ secrets.NCP_BUCKET }}/ \
52-
--endpoint-url ${{ secrets.NCP_ENDPOINT }} \
48+
aws --endpoint-url=${{ secrets.NCP_ENDPOINT }} \
49+
s3 sync ./dist \
50+
s3://${{ secrets.NCP_BUCKET }} \
5351
--delete \
5452
--acl public-read
5553
56-
- name: Deployment summary
57-
run: |
58-
echo "✅ Frontend deployed successfully!"
54+
- name: Deployment success
55+
if: success()
56+
run: echo "✅ Frontend deployment to NCP Object Storage completed successfully!"

0 commit comments

Comments
 (0)