Skip to content

Commit 67e65f0

Browse files
committed
the .deb file is name frankenphp_1.5.0... - create output folder instead and upload all things inside that
will simplify things when later adding xdebug.so and ffi.so
1 parent 533fdb8 commit 67e65f0

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/static.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,9 @@ jobs:
251251
# shellcheck disable=SC2034
252252
digest=$(jq -r '."static-builder-gnu"."${{ fromJson(needs.prepare.outputs.push) && 'containerimage.digest' || 'containerimage.config.digest' }}"' <<< "${METADATA}")
253253
container_id=$(docker create --platform=${{ matrix.platform }} "${{ fromJson(needs.prepare.outputs.push) && format('{0}-gnu@{1}', env.IMAGE_NAME, '${digest}') || '${digest}' }}")
254-
for file in $(docker run --rm "${{ fromJson(needs.prepare.outputs.push) && format('{0}-gnu@{1}', env.IMAGE_NAME, '${digest}') || '${digest}' }}" sh -c "ls /go/src/app/dist | grep '^frankenphp-'"); do
254+
mkdir -p gh-output
255+
cd gh-output
256+
for file in $(docker run --rm "${{ fromJson(needs.prepare.outputs.push) && format('{0}-gnu@{1}', env.IMAGE_NAME, '${digest}') || '${digest}' }}" sh -c "ls /go/src/app/dist | grep '^frankenphp'"); do
255257
docker cp "${container_id}:/go/src/app/dist/${file}" "./${file}"
256258
done
257259
docker rm "${container_id}"
@@ -264,10 +266,10 @@ jobs:
264266
uses: actions/upload-artifact@v4
265267
with:
266268
name: frankenphp-linux-${{ matrix.platform == 'linux/amd64' && 'x86_64' || 'aarch64' }}-gnu-files
267-
path: frankenphp-*
269+
path: gh-output/*
268270
- name: Upload assets
269271
if: fromJson(needs.prepare.outputs.push) && (needs.prepare.outputs.ref || github.ref_type == 'tag')
270-
run: gh release upload "${{ (github.ref_type == 'tag' && github.ref_name) || needs.prepare.outputs.ref }}" frankenphp-* --repo dunglas/frankenphp --clobber
272+
run: gh release upload "${{ (github.ref_type == 'tag' && github.ref_name) || needs.prepare.outputs.ref }}" gh-output/* --repo dunglas/frankenphp --clobber
271273
env:
272274
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
273275
- if: fromJson(needs.prepare.outputs.push) && (needs.prepare.outputs.ref || github.ref_type == 'tag')

0 commit comments

Comments
 (0)