From 0843c0770ec89dc07aaa85e38a1f7a73d8a309f8 Mon Sep 17 00:00:00 2001 From: Diego Hurtado Date: Wed, 31 May 2023 16:45:10 -0600 Subject: [PATCH] Fix python layer release script (#733) --- .github/workflows/release-layer-python.yml | 4 ++-- python/README.md | 2 +- utils/sam/run.sh | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-layer-python.yml b/.github/workflows/release-layer-python.yml index e489c72dc0..7c4e7324e7 100644 --- a/.github/workflows/release-layer-python.yml +++ b/.github/workflows/release-layer-python.yml @@ -31,7 +31,7 @@ jobs: - name: Show directory contents run: | ls -al - working-directory: python/sample-apps + working-directory: python/src - name: Save Python SDK Version id: save-python-sdk-version @@ -42,7 +42,7 @@ jobs: name: Save assembled layer to build with: name: opentelemetry-python-layer.zip - path: python/sample-apps/opentelemetry-python-layer.zip + path: python/src/opentelemetry-python-layer.zip publish-layer: uses: ./.github/workflows/layer-publish.yml diff --git a/python/README.md b/python/README.md index 073cb8acd0..94a5d49eaa 100644 --- a/python/README.md +++ b/python/README.md @@ -11,6 +11,6 @@ Scripts and files used to build AWS Lambda Layers for running OpenTelemetry on A * [Docker](https://docs.docker.com/get-docker) 3. Run aws configure to [set aws credential(with administrator permissions)](https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-install-mac.html#serverless-sam-cli-install-mac-iam-permissions) and default region. 4. Download a local copy of this repository from Github. -5. `cd python/sample-apps` +5. `cd python/src` 6. If you just want to create a zip file with the OpenTelemetry Python AWS Lambda layer, then use the `-b true` option: `bash run.sh -n -b true` 7. If you want to create the layer and automatically publish it, use no options: `bash run.sh` diff --git a/utils/sam/run.sh b/utils/sam/run.sh index de6e2684af..9d1444cfcb 100755 --- a/utils/sam/run.sh +++ b/utils/sam/run.sh @@ -104,4 +104,6 @@ main() { fi } +rm -rf .aws-sam + main "$@"