Skip to content

Commit 4453ddd

Browse files
authored
Update build-php-windows.yml
1 parent 6811b34 commit 4453ddd

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

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

+3-12
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,6 @@ jobs:
5151
repository: crazywhalecc/static-php-cli
5252
ref: pre-built-libs
5353

54-
- name: "Deploy cli to Zhamao Server"
55-
uses: garygrossgarten/github-action-scp@release
56-
with:
57-
local: "bin/spc"
58-
remote: /home/gh-deploy/spc-${{ matrix.php-version }}-${{ matrix.combination }}
59-
host: ${{ secrets.DEPLOY_SERVER_HOST }}
60-
username: ${{ secrets.DEPLOY_SERVER_USER }}
61-
password: ${{ secrets.DEPLOY_SERVER_PASSWORD }}
62-
6354
- name: "Setup PHP"
6455
uses: shivammathur/setup-php@v2
6556
with:
@@ -104,7 +95,7 @@ jobs:
10495
${{ steps.process-env.outputs.CMD }} doctor --auto-fix
10596
${{ steps.process-env.outputs.CMD }} install-pkg upx
10697
107-
${{ steps.process-env.outputs.CMD }} build --build-cli --build-micro "${{ steps.process-env.outputs.EXTENSIONS }}" --debug
98+
${{ steps.process-env.outputs.CMD }} build --build-cli --build-micro "${{ steps.process-env.outputs.EXTENSIONS }}" --debug --with-upx-pack
10899
109100
$PHPVER = ${{ steps.process-env.outputs.CMD }} dev:php-ver
110101
New-Item -ItemType Directory -Force -Path dist
@@ -117,7 +108,7 @@ jobs:
117108
uses: garygrossgarten/github-action-scp@release
118109
with:
119110
local: "dist/php-${{ env.PHPVER }}-cli-win.zip"
120-
remote: /home/gh-deploy/
111+
remote: "${{ steps.process-env.outputs.DEPLOY_TARGET }}/php-${{ env.PHPVER }}-cli-win.zip"
121112
host: ${{ secrets.DEPLOY_SERVER_HOST }}
122113
username: ${{ secrets.DEPLOY_SERVER_USER }}
123114
password: ${{ secrets.DEPLOY_SERVER_PASSWORD }}
@@ -126,7 +117,7 @@ jobs:
126117
uses: garygrossgarten/github-action-scp@release
127118
with:
128119
local: "dist/php-${{ env.PHPVER }}-micro-win.zip"
129-
remote: /home/gh-deploy/
120+
remote: "${{ steps.process-env.outputs.DEPLOY_TARGET }}/php-${{ env.PHPVER }}-micro-win.zip"
130121
host: ${{ secrets.DEPLOY_SERVER_HOST }}
131122
username: ${{ secrets.DEPLOY_SERVER_USER }}
132123
password: ${{ secrets.DEPLOY_SERVER_PASSWORD }}

0 commit comments

Comments
 (0)