File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ jobs:
111111 codecov --file coverage.xml
112112
113113 build_lambda_layer :
114- name : Build AWS Lambda Layer
114+ name : Build Package
115115 runs-on : ubuntu-latest
116116 timeout-minutes : 10
117117
@@ -127,21 +127,30 @@ jobs:
127127 with :
128128 path : ${{ env.CACHED_BUILD_PATHS }}
129129 key : ${{ env.BUILD_CACHE_KEY }}
130- - run : |
130+ - name : Build Packages
131+ run : |
131132 echo "Creating directory containing Python SDK Lambda Layer"
132133 pip install virtualenv
134+ # This will also trigger "make dist" that creates the Python packages
133135 make aws-lambda-layer
134136
135137 echo "Saving SDK_VERSION for later"
136138 export SDK_VERSION=$(grep "VERSION = " sentry_sdk/consts.py | cut -f3 -d' ' | tr -d '"')
137139 echo "SDK_VERSION=$SDK_VERSION"
138140 echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV
139- - uses : getsentry/action-build-aws-lambda-extension@v1
141+ - name : Upload Python AWS Lambda Layer
142+ uses : getsentry/action-build-aws-lambda-extension@v1
140143 with :
141144 artifact_name : ${{ github.sha }}
142145 zip_file_name : sentry-python-serverless-${{ env.SDK_VERSION }}.zip
143146 build_cache_paths : ${{ env.CACHED_BUILD_PATHS }}
144147 build_cache_key : ${{ env.BUILD_CACHE_KEY }}
148+ - name : Upload Python Packages
149+ uses : actions/upload-artifact@v3
150+ with :
151+ name : ${{ github.sha }}
152+ path : |
153+ dist/*
145154
146155 docs :
147156 name : Build SDK API Doc
You can’t perform that action at this time.
0 commit comments