Skip to content

Commit 24db206

Browse files
fix : change path of lambda in workflows to dist (#420)
1 parent 8d28b55 commit 24db206

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.github/workflows/base-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ jobs:
134134
run: |
135135
aws s3 cp \
136136
s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ needs.metadata.outputs.tag }}/lambda.zip \
137-
./build/lambda.zip \
137+
./dist/lambda.zip \
138138
--region eu-west-2
139139
140140
- name: "Upload lambda artifact for the current workflow"
141141
uses: actions/upload-artifact@v4
142142
with:
143143
name: lambda-${{ needs.metadata.outputs.tag }}
144-
path: ./build/lambda.zip
144+
path: ./dist/lambda.zip
145145

146146

147147
deploy:
@@ -169,7 +169,7 @@ jobs:
169169
uses: actions/download-artifact@v5
170170
with:
171171
name: lambda-${{ needs.metadata.outputs.tag }}
172-
path: ./build
172+
path: ./dist
173173

174174
- name: "Configure AWS Credentials"
175175
uses: aws-actions/configure-aws-credentials@v5
@@ -206,7 +206,7 @@ jobs:
206206

207207
- name: "Upload lambda artifact to S3"
208208
run: |
209-
aws s3 cp ./build/lambda.zip \
209+
aws s3 cp ./dist/lambda.zip \
210210
s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ needs.metadata.outputs.tag }}/lambda.zip \
211211
--region eu-west-2
212212

.github/workflows/cicd-2-publish.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ jobs:
8787
name: lambda-${{ needs.metadata.outputs.version }}
8888
path: dist/lambda.zip
8989

90-
- name: "Download Built Lambdas"
91-
uses: actions/download-artifact@v5
92-
with:
93-
name: lambda-${{ needs.metadata.outputs.version }}
94-
path: ./build
95-
9690
- name: "Configure AWS Credentials"
9791
uses: aws-actions/configure-aws-credentials@v5
9892
with:

.github/workflows/cicd-3-test-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ jobs:
7777
uses: actions/download-artifact@v5
7878
with:
7979
name: lambda-${{ needs.metadata.outputs.tag }}
80-
path: ./build
80+
path: ./dist
8181
run-id: ${{ github.event.workflow_run.id }}
8282
github-token: ${{ github.token }}
8383

@@ -108,7 +108,7 @@ jobs:
108108

109109
- name: "Upload lambda artifact to S3"
110110
run: |
111-
aws s3 cp ./build/lambda.zip \
111+
aws s3 cp ./dist/lambda.zip \
112112
s3://${{ steps.tf_output.outputs.bucket_name }}/artifacts/${{ needs.metadata.outputs.tag }}/lambda.zip \
113113
--region eu-west-2
114114

0 commit comments

Comments
 (0)