Skip to content

Commit

Permalink
Fix Deployment (#1474)
Browse files Browse the repository at this point in the history
* Upload python packages for deployment to PyPi
* Added documentation to clarify what is happening
  • Loading branch information
antonpirker committed Jun 22, 2022
1 parent 0352c79 commit b58a192
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/ci.yml
Expand Up @@ -111,7 +111,7 @@ jobs:
codecov --file coverage.xml
build_lambda_layer:
name: Build AWS Lambda Layer
name: Build Package
runs-on: ubuntu-latest
timeout-minutes: 10

Expand All @@ -127,21 +127,30 @@ jobs:
with:
path: ${{ env.CACHED_BUILD_PATHS }}
key: ${{ env.BUILD_CACHE_KEY }}
- run: |
- name: Build Packages
run: |
echo "Creating directory containing Python SDK Lambda Layer"
pip install virtualenv
# This will also trigger "make dist" that creates the Python packages
make aws-lambda-layer
echo "Saving SDK_VERSION for later"
export SDK_VERSION=$(grep "VERSION = " sentry_sdk/consts.py | cut -f3 -d' ' | tr -d '"')
echo "SDK_VERSION=$SDK_VERSION"
echo "SDK_VERSION=$SDK_VERSION" >> $GITHUB_ENV
- uses: getsentry/action-build-aws-lambda-extension@v1
- name: Upload Python AWS Lambda Layer
uses: getsentry/action-build-aws-lambda-extension@v1
with:
artifact_name: ${{ github.sha }}
zip_file_name: sentry-python-serverless-${{ env.SDK_VERSION }}.zip
build_cache_paths: ${{ env.CACHED_BUILD_PATHS }}
build_cache_key: ${{ env.BUILD_CACHE_KEY }}
- name: Upload Python Packages
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
path: |
dist/*
docs:
name: Build SDK API Doc
Expand Down

0 comments on commit b58a192

Please sign in to comment.