From a06a9f585b110b1721c00c4116d3f0e51e8b3043 Mon Sep 17 00:00:00 2001 From: EremeevRA Date: Tue, 24 Mar 2026 12:21:36 +0300 Subject: [PATCH] Improve CI workflow by adding logging for zip creation and enforcing file presence. Added error handling for zip commands and a check to ensure artifacts are created before upload. --- .gitea/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3f5569d..0076aaa 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -65,8 +65,12 @@ jobs: - name: Create archives run: | - zip -r api.zip api/ -x "*.pyc" "*__pycache__*" "*.git*" "*.pytest_cache*" - zip -r web.zip web/ -x "node_modules/*" ".git*" "dist/*" "*.log" + echo "Creating api.zip..." + zip -r api.zip api/ -x "*.pyc" "*__pycache__*" "*.git*" "*.pytest_cache*" || echo "Warning: zip command failed for api" + echo "Creating web.zip..." + zip -r web.zip web/ -x "node_modules/*" ".git*" "dist/*" "*.log" || echo "Warning: zip command failed for web" + # Проверяем, что файлы созданы + ls -la api.zip web.zip - name: Upload artifacts uses: actions/upload-artifact@v4 @@ -76,6 +80,7 @@ jobs: api.zip web.zip retention-days: 7 + if-no-files-found: error # добавим, чтобы явно указывать, что файлы обязательны # Явный статус для PR pr-status: