diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 5384493..bf11012 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -57,12 +57,17 @@ jobs: PACKAGE_NAME: ${{ env.PACKAGE_NAME }} run: | set -euo pipefail - tar -czf "$PACKAGE_NAME" \ + TMP_PACKAGE="/tmp/${PACKAGE_NAME}" + rm -f "$TMP_PACKAGE" "$PACKAGE_NAME" + + tar -czf "$TMP_PACKAGE" \ + --exclude="$PACKAGE_NAME" \ --exclude-vcs \ --exclude="./runtime/*" \ --exclude="./.trae/*" \ --exclude="./source/clients/uniapp/node_modules/*" \ . + cp -f "$TMP_PACKAGE" "$PACKAGE_NAME" - name: 创建远端目录 uses: appleboy/ssh-action@v0.1.10