8000 Fix Deployment (#1474) · leeworker/sentry-python@b58a192 · GitHub
[go: up one dir, main page]

Skip to content

Commit b58a192

Browse files
authored
Fix Deployment (getsentry#1474)
* Upload python packages for deployment to PyPi * Added documentation to clarify what is happening
1 parent 0352c79 commit b58a192

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0