From 37741d359920a750f4e4ac5a37c7a92809519c23 Mon Sep 17 00:00:00 2001 From: Menghuan Date: Thu, 5 Dec 2024 22:39:22 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=89=93=E5=8C=85=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/conda-pack-windows.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/conda-pack-windows.yml b/.github/workflows/conda-pack-windows.yml index 7f1912d5..c23c6658 100644 --- a/.github/workflows/conda-pack-windows.yml +++ b/.github/workflows/conda-pack-windows.yml @@ -42,18 +42,21 @@ jobs: conda activate gpt conda install conda-pack -y - - name: Pack workspace and environment + - name: Activate conda environment and pack conda shell: bash -l {0} run: | conda activate gpt - conda pack -n gpt -o gpt.tar.gz - cd temp_workspace - tar -czf ../workspace.tar.gz * + mkdir -p temp_workspace + conda pack -n gpt -o temp_workspace/gpt.tar.gz + - name: Pack workspace + shell: bash -l {0} + run: | + cd temp_workspace + tar -czf workspace_with_env.tar.gz * + - name: Upload packed files uses: actions/upload-artifact@v4 with: name: gpt-academic-package - path: | - gpt.tar.gz - workspace.tar.gz + path: temp_workspace/workspace_with_env.tar.gz