8000 switch to getting files to zip from the build cache · bissolli/sentry-javascript@786851e · GitHub
[go: up one dir, main page]

Skip to content

Commit 786851e

Browse files
committed
switch to getting files to zip from the build cache
1 parent f720781 commit 786851e

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,15 +158,16 @@ jobs:
158158
run: |
159159
export SDK_VERSION=$(cat packages/core/package.json | jq --raw-output '.version')
160160
echo "SDK_VERSION=$SDK_VERSION" | tee -a $GITHUB_ENV
161-
- uses: actions/upload-artifact@v3
162-
with:
163-
name: ${{ env.HEAD_COMMIT }}
164-
path: |
165-
dist-serverless/*
166-
- uses: getsentry/action-build-aws-lambda-extension@v1
161+
- name: Move dist-serverless to root directory (requirement for zipping action)
162+
run: |
163+
mv ./packages/serverless/build/aws/dist-serverless .
164+
- name: Create and upload final zip file
165+
uses: getsentry/action-build-aws-lambda-extension@v1
167166
with:
168167
artifact_name: ${{ env.HEAD_COMMIT }}
169168
zip_file_name: sentry-node-serverless-${{ env.SDK_VERSION }}.zip
169+
build_cache_paths: ${{ env.CACHED_BUILD_PATHS }}
170+
build_cache_key: ${{ env.BUILD_CACHE_KEY }}
170171

171172
job_size_check:
172173
name: Size Check

0 commit comments

Comments
 (0)
0