From dbec48c3afc6a3d8d66c6d121651824c54dfc640 Mon Sep 17 00:00:00 2001 From: Onesmus Wambugu Date: Wed, 10 Jan 2024 19:59:38 +0300 Subject: [PATCH] fix : packaging dir --- .github/workflows/deploy_to_aws.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy_to_aws.yml b/.github/workflows/deploy_to_aws.yml index 01fa367..d1b1210 100644 --- a/.github/workflows/deploy_to_aws.yml +++ b/.github/workflows/deploy_to_aws.yml @@ -107,7 +107,7 @@ jobs: pyproject.toml pip install -r requirements.txt -t src/ cd src/ - zip -r lambda.zip . + zip -r ../lambda.zip . - name: Create Artifact Bucket run: | @@ -115,7 +115,7 @@ jobs: - name: Upload Artifact to S3 run: | - aws s3 cp src/lambda.zip s3://${{ env.ENVIROMENT }}-${{ env.AWS_REGION }}-artifact-bucket --recursive + aws s3 cp lambda.zip s3://${{ env.ENVIROMENT }}-${{ env.AWS_REGION }}-artifact-bucket --recursive Deploy: runs-on: ubuntu-latest needs: Build