From 23eda655d016132d0f95411772046723ad5e341d Mon Sep 17 00:00:00 2001 From: mohit-s96 Date: Thu, 12 Jan 2023 23:13:13 +0530 Subject: [PATCH] issue #17: added github action for publishing to AWS lambda --- .github/workflows/push-lambda-layer.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/push-lambda-layer.yml b/.github/workflows/push-lambda-layer.yml index 8f0846b..453b933 100644 --- a/.github/workflows/push-lambda-layer.yml +++ b/.github/workflows/push-lambda-layer.yml @@ -1,19 +1,17 @@ -name: ci-test +name: publish-aws-lambda-layer on: push: branches: - 17-publish-etl-package-to-lambda-layer jobs: - test: + publish: runs-on: ubuntu-latest timeout-minutes: 5 steps: - name: AWS Lambda Layer Publish - uses: mohit-s96/aws-lambda-publishlayer@79ac14ad142c878a772c67cd92d50e47e0c02769 + uses: mohit-s96/aws-lambda-publishlayer@770ca73ee40a39c36d9ea53d54af6a4fceaa9be8 env: AWS_REGION: ${{ secrets.AWS_REGION }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - with: - layer_name: ETLLayer - zip_file: path/to/file.zip + AWS_LAYER_NAME: ${{ secrets.AWS_LAYER_NAME }}