From 8ceb323cda382e6c4528eed34dff7ff0703ee8fc Mon Sep 17 00:00:00 2001 From: yanghuanglin Date: Fri, 21 Nov 2025 19:17:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B7=A5=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/BuildLauncher.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/BuildLauncher.yml b/.github/workflows/BuildLauncher.yml index cac6321..0d61faf 100644 --- a/.github/workflows/BuildLauncher.yml +++ b/.github/workflows/BuildLauncher.yml @@ -216,20 +216,21 @@ jobs: fi cd ${{ env.BUILD_SCRIPT_OUTPUT_DIR }} ZIP_FILE_NAME=$(ls *.zip 2>/dev/null | head -1) + ZIP_FILE_PATH="${{ env.BUILD_SCRIPT_OUTPUT_DIR }}/$ZIP_FILE_NAME" if [ -z "$ZIP_FILE_NAME" ]; then echo "错误:在 ${{ env.BUILD_SCRIPT_OUTPUT_DIR }} 中未找到 zip 文件" ls -la "${{ env.BUILD_SCRIPT_OUTPUT_DIR }}" || echo "目录内容无法列出" exit 1 fi - echo "zip_file=$ZIP_FILE" >> $GITHUB_OUTPUT - echo "ZIP_FILE: $ZIP_FILE" + echo "zip_file_path=$ZIP_FILE_PATH" >> $GITHUB_OUTPUT + echo "ZIP_FILE_PATH: $ZIP_FILE_PATH" - echo "artifact_name=$ZIP_FILE_NAME" >> $GITHUB_OUTPUT + echo "zip_file_name=$ZIP_FILE_NAME" >> $GITHUB_OUTPUT echo "ZIP_FILE_NAME: $ZIP_FILE_NAME" - name: 上传 uses: https://github.com/christopherHX/gitea-upload-artifact@v4 with: - name: ${{ steps.file_info.outputs.artifact_name }} - path: ${{ steps.file_info.outputs.zip_file }} \ No newline at end of file + name: ${{ steps.file_info.outputs.zip_file_name }} + path: ${{ steps.file_info.outputs.zip_file_path }} \ No newline at end of file