Update conda-pack-windows.yml

This commit is contained in:
Menghuan 2024-12-05 23:52:30 +08:00 committed by GitHub
parent bbf1a577f9
commit dcbfde1356
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 4 deletions

View File

@ -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