Skip to content

Commit f6b7d0d

Browse files
authored
Update build-php-windows.yml
1 parent 89b7903 commit f6b7d0d

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

.github/workflows/build-php-windows.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,13 @@ jobs:
104104
ls dist
105105
echo ("PHPVER=" + $PHPVER) >> $env:GITHUB_ENV
106106
107-
- name: "Deploy cli to self-hosted OSS"
108-
uses: static-php/upload-s3-action@v1.0.0
109-
with:
110-
aws_key_id: ${{ secrets.AWS_KEY_ID }}
111-
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
112-
aws_bucket: ${{ secrets.AWS_BUCKET }}
113-
source_dir: "dist/"
114-
destination_dir: static-php-cli/windows/${{ matrix.combination }}/
115-
endpoint: ${{ secrets.AWS_ENDPOINT }}
107+
- name: "Add README for ${{ matrix.combination }}"
108+
if: matrix.php-version == "8.3"
109+
run:
110+
$content = "# Note`n`nCurrent distribution uses extensions:`n`n${{ steps.process-env.outputs.EXTENSIONS }}`n`nUsing compile command:`n`n bin/spc build --build-cli --build-micro ""${{ steps.process-env.outputs.EXTENSIONS }}"" --debug --with-upx-pack"
111+
[System.Text.Encoding]::UTF8.GetBytes($content) | Set-Content -Path "dist\README.txt" -Encoding Byte
116112

117-
- name: "Deploy micro.sfx to self-hosted OSS"
113+
- name: "Deploy to self-hosted OSS"
118114
uses: static-php/upload-s3-action@v1.0.0
119115
with:
120116
aws_key_id: ${{ secrets.AWS_KEY_ID }}

0 commit comments

Comments
 (0)