51
51
repository : crazywhalecc/static-php-cli
52
52
ref : pre-built-libs
53
53
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
-
63
54
- name : " Setup PHP"
64
55
uses : shivammathur/setup-php@v2
65
56
with :
104
95
${{ steps.process-env.outputs.CMD }} doctor --auto-fix
105
96
${{ steps.process-env.outputs.CMD }} install-pkg upx
106
97
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
108
99
109
100
$PHPVER = ${{ steps.process-env.outputs.CMD }} dev:php-ver
110
101
New-Item -ItemType Directory -Force -Path dist
@@ -117,7 +108,7 @@ jobs:
117
108
uses : garygrossgarten/github-action-scp@release
118
109
with :
119
110
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 "
121
112
host : ${{ secrets.DEPLOY_SERVER_HOST }}
122
113
username : ${{ secrets.DEPLOY_SERVER_USER }}
123
114
password : ${{ secrets.DEPLOY_SERVER_PASSWORD }}
@@ -126,7 +117,7 @@ jobs:
126
117
uses : garygrossgarten/github-action-scp@release
127
118
with :
128
119
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 "
130
121
host : ${{ secrets.DEPLOY_SERVER_HOST }}
131
122
username : ${{ secrets.DEPLOY_SERVER_USER }}
132
123
password : ${{ secrets.DEPLOY_SERVER_PASSWORD }}
0 commit comments