From b054a62cc66a537b189fe49517e53c78af11160c Mon Sep 17 00:00:00 2001 From: shnamm <96981162+shnamm@users.noreply.github.com> Date: Wed, 20 Dec 2023 14:38:05 +0900 Subject: [PATCH] Update deploy.yml --- .github/workflows/deploy.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b6e5560..170bc83 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,12 +30,16 @@ jobs: run: | python manage.py test + - name: Create mutsa.zip + run: | + zip -r mutsa.zip ./* + - name: Upload to S3 env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} run: | - aws s3 cp . s3://mutsa-s3-bucket/ --recursive --exclude "*" --include "mutsa.zip" + aws s3 cp mutsa.zip s3://mutsa-s3-bucket/ - name: Deploy to AWS CodeDeploy env: