Skip to content

Commit

Permalink
Added version to zip file name.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonpirker committed Apr 6, 2022
1 parent 0e0b4a7 commit 7dfde65
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,16 @@ jobs:
python-version: 3.9

- run: |
echo "Creating directory containing Python SDK Lambda Layer"
pip install virtualenv
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
echo $SDK_VERSION
- uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
Expand All @@ -127,13 +134,13 @@ jobs:
- uses: getsentry/action-build-aws-lambda-extension@v1
with:
artifact_name: ${{ github.sha }}
zip_file_name: sentry-python-serverless-X.X.X.zip
zip_file_name: sentry-python-serverless-${{ env.SDK_VERSION }}.zip

- name: Upload Zip
uses: actions/upload-artifact@v3
with:
name: ${{ github.sha }}
path: sentry-python-serverless-X.X.X.zip
path: sentry-python-serverless-${{ env.SDK_VERSION }}.zip

docs:
name: Build SDK API Doc
Expand Down

0 comments on commit 7dfde65

Please sign in to comment.