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:
111
111
codecov --file coverage.xml
112
112
113
113
build_lambda_layer :
114
- name : Build AWS Lambda Layer
114
+ name : Build Package
115
115
runs-on : ubuntu-latest
116
116
timeout-minutes : 10
117
117
@@ -127,21 +127,30 @@ jobs:
127
127
with :
128
128
path : ${{ env.CACHED_BUILD_PATHS }}
129
129
key : ${{ env.BUILD_CACHE_KEY }}
130
- - run : |
130
+ - name : Build Packages
131
+ run : |
131
132
echo "Creating directory containing Python SDK Lambda Layer"
132
133
pip install virtualenv
134
+ # This will also trigger "make dist" that creates the Python packages
133
135
make aws-lambda-layer
134
136
135
137
echo "Saving SDK_VERSION for later"
136
138
export SDK_VERSION=$(grep "VERSION = " sentry_sdk/consts.py | cut -f3 -d' ' | tr -d '"')
137
139
echo "SDK_VERSION=$SDK_VERSION"
138
140
echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV
139
-
8F56
span> - uses : getsentry/action-build-aws-lambda-extension@v1
141
+ - name : Upload Python AWS Lambda Layer
142
+ uses : getsentry/action-build-aws-lambda-extension@v1
140
143
with :
141
144
artifact_name : ${{ github.sha }}
142
145
zip_file_name : sentry-python-serverless-${{ env.SDK_VERSION }}.zip
143
146
build_cache_paths : ${{ env.CACHED_BUILD_PATHS }}
144
147
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/*
145
154
146
155
docs :
147
156
name : Build SDK API Doc
You can’t perform that action at this time.
0 commit comments