Fix: Install AWS CLI to /tmp to avoid uploading it
All checks were successful
Deploy to CF Multisite / deploy (push) Successful in 2m53s

This commit is contained in:
kappa
2026-01-29 00:43:10 +09:00
parent 9872d849fd
commit d3040f473f

View File

@@ -13,9 +13,9 @@ jobs:
- name: Install AWS CLI - name: Install AWS CLI
run: | run: |
curl -sL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" curl -sL "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o /tmp/awscliv2.zip
unzip -q awscliv2.zip cd /tmp && unzip -q awscliv2.zip && sudo ./aws/install
sudo ./aws/install aws --version
- name: Deploy to R2 - name: Deploy to R2
env: env:
@@ -23,7 +23,6 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_KEY }} AWS_SECRET_ACCESS_KEY: ${{ secrets.R2_SECRET_KEY }}
R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }} R2_ENDPOINT: ${{ secrets.R2_ENDPOINT }}
run: | run: |
# 저장소 이름을 사이트 ID로 사용
SITE_ID="${{ github.event.repository.name }}" SITE_ID="${{ github.event.repository.name }}"
aws s3 sync . "s3://multisite-bucket/sites/${SITE_ID}/" \ aws s3 sync . "s3://multisite-bucket/sites/${SITE_ID}/" \