Skip to content

Commit

Permalink
Release dev zips alongside RC-dev ones for 8.1
Browse files Browse the repository at this point in the history
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
  • Loading branch information
shivammathur authored Nov 11, 2021
1 parent 1f56101 commit 0a74c16
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/php81.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ jobs:
$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]}
(Get-Content .\builds\${{ matrix.config }}.json | ConvertFrom-Json).revision_last > COMMIT
Get-ChildItem .\builds\* -Include ("php-$php_version*.zip", "php-master*.zip") | Foreach-Object { Compress-Archive -update COMMIT $_ }
Get-ChildItem .\builds\*.zip | Foreach-Object {
if ($_.Name -match '.*(rc|RC)\d*-dev.*') {
Copy-Item -Path $_ -Destination (Join-Path -Path builds -ChildPath ($_.Name -replace '(rc|RC)\d+', '')) -Force
}
}
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 0a74c16

Please sign in to comment.