Skip to content

Commit 57bc548

Browse files
ci: update static artifact actions to v4 (#1264)
1 parent d276032 commit 57bc548

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/static.yaml

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ jobs:
9595
runs-on: ubuntu-latest
9696
needs: [ prepare ]
9797
steps:
98+
- name: Prepare
99+
id: prepare
100+
run: |
101+
platform=${{ matrix.platform }}
102+
echo "sanitized_platform=${platform//\//-}" >> "${GITHUB_OUTPUT}"
98103
-
99104
uses: actions/checkout@v4
100105
with:
@@ -154,9 +159,9 @@ jobs:
154159
-
155160
name: Upload metadata
156161
if: fromJson(needs.prepare.outputs.push) && !matrix.debug && !matrix.mimalloc
157-
uses: actions/upload-artifact@v3
162+
uses: actions/upload-artifact@v4
158163
with:
159-
name: metadata-static-builder
164+
name: metadata-static-builder-${{ steps.prepare.outputs.sanitized_platform }}
160165
path: /tmp/metadata/*
161166
if-no-files-found: error
162167
retention-days: 1
@@ -173,7 +178,7 @@ jobs:
173178
-
174179
name: Upload artifact
175180
if: ${{ !fromJson(needs.prepare.outputs.push) }}
176-
uses: actions/upload-artifact@v3
181+
uses: actions/upload-artifact@v4
177182
with:
178183
name: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
179184
path: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}${{ matrix.debug && '-debug' || '' }}${{ matrix.mimalloc && '-mimalloc' || '' }}
@@ -199,10 +204,11 @@ jobs:
199204
steps:
200205
-
201206
name: Download metadata
202-
uses: actions/download-artifact@v3
207+
uses: actions/download-artifact@v4
203208
with:
204-
name: metadata-static-builder
209+
pattern: metadata-static-builder-*
205210
path: /tmp/metadata
211+
merge-multiple: true
206212
-
207213
name: Set up Docker Buildx
208214
uses: docker/setup-buildx-action@v3
@@ -297,7 +303,7 @@ jobs:
297303
-
298304
name: Upload artifact
299305
if: github.ref_type == 'branch'
300-
uses: actions/upload-artifact@v3
306+
uses: actions/upload-artifact@v4
301307
with:
302308
name: frankenphp-mac-${{ matrix.platform }}
303309
path: dist/frankenphp-mac-${{ matrix.platform }}

0 commit comments

Comments
 (0)