Change to deploy OSS

This commit is contained in:
crazywhalecc 2024-08-18 15:48:11 +08:00 committed by Jerry Ma
parent d231364c1a
commit d5832c22e3

View File

@ -115,17 +115,16 @@ jobs:
with: with:
files: dist/${{ matrix.operating-system.filename }} files: dist/${{ matrix.operating-system.filename }}
- name: "Deploy to Self-Hosted Server" - name: "Deploy to self-hosted OSS"
if: github.repository == 'crazywhalecc/static-php-cli' if: github.repository == 'crazywhalecc/static-php-cli'
uses: easingthemes/ssh-deploy@main uses: static-php/upload-s3-action@v1.0.0
env: with:
SSH_PRIVATE_KEY: ${{ secrets.DEPLOY_SERVER_SECRET_KEY }} aws_key_id: ${{ secrets.AWS_KEY_ID }}
ARGS: "-rltgoDzvO" aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
SOURCE: "dist/" aws_bucket: ${{ secrets.AWS_BUCKET }}
REMOTE_HOST: ${{ secrets.DEPLOY_SERVER_HOST }} source_dir: "dist/"
REMOTE_PORT: ${{ secrets.DEPLOY_SERVER_PORT }} destination_dir: static-php-cli/spc-bin/nightly/
REMOTE_USER: ${{ secrets.DEPLOY_SERVER_USER }} endpoint: ${{ secrets.AWS_ENDPOINT }}
TARGET: ${{ secrets.DEPLOY_SERVER_TARGET_SPC_NIGHTLY }}
- name: "Upload Artifact" - name: "Upload Artifact"
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4