ci: clean up old artifact before uploading to server

This commit is contained in:
2026-06-17 00:14:16 +08:00
parent e4aa5b988b
commit f1393088a4
+1 -1
View File
@@ -37,7 +37,7 @@ jobs:
username: ${{ vars.DEPLOY_USER }}
port: ${{ vars.DEPLOY_PORT }}
key: ${{ secrets.DEPLOY_SSH_KEY }}
command: rm -rf /tmp/dist.tar.gz /tmp/dist.tar.gz/
command: rm -f /tmp/dist.tar.gz /tmp/*.tar.gz
- name: Upload artifact to server
uses: appleboy/scp-action@v0.1.7