Skip to content

Commit 0a74c16

Browse files
authored
Release dev zips alongside RC-dev ones for 8.1
This is required since in PHP-8.1 branch RC is suffixed to the version and might break scripts. This wasn't the case for earlier minor versions in RC phase The PHP release process - Make up things as we go
1 parent 1f56101 commit 0a74c16

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/php81.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ jobs:
9595
$php_version = Invoke-RestMethod https://raw.githubusercontent.com/php/php-src/PHP-8.1/main/php_version.h | Where-Object { $_ -match 'PHP_VERSION "(.*)"' } | Foreach-Object {$Matches[1]}
9696
(Get-Content .\builds\${{ matrix.config }}.json | ConvertFrom-Json).revision_last > COMMIT
9797
Get-ChildItem .\builds\* -Include ("php-$php_version*.zip", "php-master*.zip") | Foreach-Object { Compress-Archive -update COMMIT $_ }
98+
Get-ChildItem .\builds\*.zip | Foreach-Object {
99+
if ($_.Name -match '.*(rc|RC)\d*-dev.*') {
100+
Copy-Item -Path $_ -Destination (Join-Path -Path builds -ChildPath ($_.Name -replace '(rc|RC)\d+', '')) -Force
101+
}
102+
}
98103
- name: Upload Artifact
99104
uses: actions/upload-artifact@v2
100105
with:

0 commit comments

Comments
 (0)