更新 .gitea/workflows/build-action.yaml
Frontend CI/CD / build (web-office) (push) Successful in 2m18s Details

This commit is contained in:
z9130 2024-09-17 12:50:18 +08:00
parent 3b0652f5fd
commit 9182e8850b
1 changed files with 1 additions and 12 deletions

View File

@ -65,15 +65,4 @@ jobs:
ls
rsync -av --delete -e "ssh -o StrictHostKeyChecking=no -p ${{ vars.REMOTE_PORT }}" dist/ ${{ vars.REMOTE_USER }}@${{ vars.REMOTE_HOST }}:/opt/test
echo "Files transferred."
# Execute remote commands
# - name: Execute remote commands
# run: |
# echo "Executing remote commands..."
# sshpass -p "zx123123" ssh -o StrictHostKeyChecking=no root@172.19.183.27 << 'EOF'
# echo "Removing old files..."
# rm -rf /opt/pansoft/*
# echo "Old files removed."
# mv /opt/pansoft/dist/* /opt/pansoft/
# echo "Deployment complete."
# EOF