Skip to content

Commit 64e2977

Browse files
authored
ci: update actions/upload-artifact to v4 with merge (getsentry#3545)
1 parent 49dd64d commit 64e2977

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

.github/workflows/ci.yml

+23-4
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,14 @@ jobs:
7070
# This will also trigger "make dist" that creates the Python packages
7171
make aws-lambda-layer
7272
- name: Upload Python Packages
73-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
7474
with:
75-
name: ${{ github.sha }}
75+
name: artifact-build_lambda_layer
7676
path: |
7777
dist/*
78+
if-no-files-found: 'error'
79+
# since this artifact will be merged, compression is not necessary
80+
compression-level: '0'
7881

7982
docs:
8083
name: Build SDK API Doc
@@ -91,7 +94,23 @@ jobs:
9194
make apidocs
9295
cd docs/_build && zip -r gh-pages ./
9396
94-
- uses: actions/upload-artifact@v3.1.1
97+
- uses: actions/upload-artifact@v4
98+
with:
99+
name: artifact-docs
100+
path: |
101+
docs/_build/gh-pages.zip
102+
if-no-files-found: 'error'
103+
# since this artifact will be merged, compression is not necessary
104+
compression-level: '0'
105+
106+
merge:
107+
name: Create Release Artifact
108+
runs-on: ubuntu-latest
109+
needs: [build_lambda_layer, docs]
110+
steps:
111+
- uses: actions/upload-artifact/merge@v4
95112
with:
113+
# Craft expects release assets from github to be a single artifact named after the sha.
96114
name: ${{ github.sha }}
97-
path: docs/_build/gh-pages.zip
115+
pattern: artifact-*
116+
delete-merged: true

0 commit comments

Comments
 (0)