From 240bf6284af1f6ca5e9d67dd2d166b3cc05360ec Mon Sep 17 00:00:00 2001 From: Seedgou Date: Sat, 26 Oct 2024 02:18:20 +0800 Subject: [PATCH] fix: uploadd to s3 --- .github/workflows/build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4d7c7e7..7c6234b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -47,10 +47,14 @@ jobs: aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws configure set region ${{ secrets.AWS_REGION }} + - name: Upload to S3 + run: | + aws s3 cp mutool-layer.zip s3://mutool-layer/mutool-layer.zip + - name: Deploy the layer to the artifact registry run: | aws lambda publish-layer-version \ --layer-name mutool-layer \ - --zip-file fileb://mutool-layer.zip \ + --content S3Bucket=mutool-layer,S3Key=mutool-layer.zip \ --compatible-runtimes nodejs20.x --region ${{ secrets.AWS_REGION }}