Skip to content

Commit 70f5e01

Browse files
committed
Use naming scheme for build artifacts
1 parent 60e6457 commit 70f5e01

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

extension/BuildPhpExtension/private/Add-Package.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ function Add-Package {
9595
}
9696
}
9797
}
98+
Add-Content "artifact=$artifact" -Path $env:GITHUB_OUTPUT -Encoding utf8
9899

99100
7z a -sdel "$artifact.zip" *
100101

extension/action.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ runs:
5555
uses: actions/checkout@v4
5656

5757
- name: Build PHP
58+
id: build
5859
shell: pwsh
5960
env:
6061
CONFIGURE_ARGS: ${{inputs.args}}
@@ -73,8 +74,8 @@ runs:
7374
-Arch ${{inputs.arch}} `
7475
-Ts ${{inputs.ts}}
7576
76-
- name: Upload artifacts
77+
- name: Upload the build artifact
7778
uses: actions/upload-artifact@v4
7879
with:
79-
name: artifacts-${{inputs.php-version}}-${{inputs.arch}}-${{inputs.ts}}
80+
name: ${{ steps.build.outputs.artifact }}
8081
path: artifacts/*

0 commit comments

Comments
 (0)