From dcbfde13562e70ee1fd77508abf6ae1400069473 Mon Sep 17 00:00:00 2001 From: Menghuan Date: Thu, 5 Dec 2024 23:52:30 +0800 Subject: [PATCH] Update conda-pack-windows.yml --- .github/workflows/conda-pack-windows.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/conda-pack-windows.yml b/.github/workflows/conda-pack-windows.yml index 9e835b5a..4990ef34 100644 --- a/.github/workflows/conda-pack-windows.yml +++ b/.github/workflows/conda-pack-windows.yml @@ -27,7 +27,8 @@ jobs: shell: bash -l {0} run: | conda activate gpt - pip install -r requirements.txt + pip install uv + uv pip install -r requirements.txt - name: Install conda-pack shell: bash -l {0} @@ -45,9 +46,9 @@ jobs: shell: pwsh run: | mkdir workspace - cp -r * workspace/ 2>$null - rm -rf workspace/.git* - mv gpt.tar.gz workspace/ + Get-ChildItem -Exclude "workspace" | Copy-Item -Destination workspace -Recurse + Remove-Item -Path workspace/.git* -Recurse -Force -ErrorAction SilentlyContinue + Move-Item gpt.tar.gz workspace/ Compress-Archive -Path "workspace\*" -DestinationPath "workspace_with_env.zip" - name: Upload packed files