|
|
@@ -50,6 +50,19 @@ jobs:
|
|
|
rsync -av --delete dist/h5/ /home/ccos/dros/linux-arm64-unpacked/h5/
|
|
|
echo "✅ 文件已成功复制到 /home/ccos/dros/linux-arm64-unpacked/h5"
|
|
|
|
|
|
+ - name: Set timestamp version
|
|
|
+ run: echo "VERSION=$(date +%Y%m%d-%H%M%S)" >> $GITHUB_ENV
|
|
|
+
|
|
|
+ - name: Upload dist/h5/ to server
|
|
|
+ uses: burnett01/rsync-deployments@6.0.0
|
|
|
+ with:
|
|
|
+ switches: -avz --delete
|
|
|
+ path: dist/h5/ # 本地构建产物目录
|
|
|
+ remote_path: "${{ secrets.DEPLOY_PATH }}/${{ env.VERSION }}/" # 服务器目标路径
|
|
|
+ remote_host: ${{ secrets.DEPLOY_HOST }}
|
|
|
+ remote_user: ${{ secrets.DEPLOY_USER }}
|
|
|
+ remote_key: ${{ secrets.DEPLOY_KEY }}
|
|
|
+
|
|
|
# build-pkg:
|
|
|
# needs: deploy-h5-production
|
|
|
# runs-on: self-hosted
|