Skip to content

Commit 2fecfc5

Browse files
authored
Update build-php-unix.yml
1 parent f6b7d0d commit 2fecfc5

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,18 +163,18 @@ jobs:
163163
cp -r buildroot/license dist/
164164
cp buildroot/build-extensions.json dist/
165165
cp buildroot/build-libraries.json dist/
166+
echo "# 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 --build-fpm ${{ steps.process-env.outputs.EXTENSIONS }} --debug --with-upx-pack" > dist/README.txt
166167
fi
167168
168-
- name: Deploy to Zhamao Server
169-
uses: easingthemes/ssh-deploy@main
170-
env:
171-
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }}
172-
ARGS: "-rltgoDzvO"
173-
SOURCE: "dist/"
174-
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }}
175-
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }}
176-
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }}
177-
TARGET: ${{ steps.process-env.outputs.DEPLOY_TARGET }}
169+
- name: "Deploy to self-hosted OSS"
170+
uses: static-php/[email protected]
171+
with:
172+
aws_key_id: ${{ secrets.AWS_KEY_ID }}
173+
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
174+
aws_bucket: ${{ secrets.AWS_BUCKET }}
175+
source_dir: "dist/"
176+
destination_dir: static-php-cli/${{ matrix.combination }}/
177+
endpoint: ${{ secrets.AWS_ENDPOINT }}
178178

179179
- name: "Upload Artifact"
180180
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)