mirror of
https://github.com/EstrellaXD/Auto_Bangumi.git
synced 2026-05-09 23:23:21 +08:00
The release artifact only zipped backend/src, omitting pyproject.toml and uv.lock, so local deployments couldn't install dependencies. #994 also reported the missing requirements.txt after the uv migration in 3.2.0. Install uv in the release job and generate a production-only requirements.txt via `uv export --no-dev`, then bundle all three alongside src in the app zip. Closes #994 Closes #1015
This commit is contained in:
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
@@ -314,9 +314,18 @@ jobs:
|
||||
echo ${{ needs.version-info.outputs.version }}
|
||||
echo "VERSION='${{ needs.version-info.outputs.version }}'" >> module/__version__.py
|
||||
|
||||
- uses: astral-sh/setup-uv@v4
|
||||
with:
|
||||
version: "latest"
|
||||
|
||||
- name: Generate requirements.txt for non-uv consumers (#994)
|
||||
run: |
|
||||
cd backend && uv export --format requirements-txt --no-hashes --no-dev -o requirements.txt
|
||||
|
||||
- name: Zip app
|
||||
run: |
|
||||
cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip src
|
||||
cd backend && zip -r app-v${{ needs.version-info.outputs.version }}.zip \
|
||||
src pyproject.toml uv.lock requirements.txt
|
||||
|
||||
- name: Generate Release info
|
||||
id: release-info
|
||||
|
||||
Reference in New Issue
Block a user