Skip to content

Commit

Permalink
fix: uploadd to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
rwv committed Oct 25, 2024
1 parent 6ae546b commit 240bf62
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 240bf62

Please sign in to comment.