Skip to content

Commit 0843c07

Browse files
authored
Fix python layer release script (aws-observability#733)
1 parent ef1851d commit 0843c07

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/release-layer-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Show directory contents
3232
run: |
3333
ls -al
34-
working-directory: python/sample-apps
34+
working-directory: python/src
3535

3636
- name: Save Python SDK Version
3737
id: save-python-sdk-version
@@ -42,7 +42,7 @@ jobs:
4242
name: Save assembled layer to build
4343
with:
4444
name: opentelemetry-python-layer.zip
45-
path: python/sample-apps/opentelemetry-python-layer.zip
45+
path: python/src/opentelemetry-python-layer.zip
4646

4747
publish-layer:
4848
uses: ./.github/workflows/layer-publish.yml

python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ Scripts and files used to build AWS Lambda Layers for running OpenTelemetry on A
1111
* [Docker](https://docs.docker.com/get-docker)
1212
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.
1313
4. Download a local copy of this repository from Github.
14-
5. `cd python/sample-apps`
14+
5. `cd python/src`
1515
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 <LAYER_NAME_HERE> -b true`
1616
7. If you want to create the layer and automatically publish it, use no options: `bash run.sh`

utils/sam/run.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,6 @@ main() {
104104
fi
105105
}
106106

107+
rm -rf .aws-sam
108+
107109
main "$@"

0 commit comments

Comments
 (0)