test #5
@@ -65,8 +65,12 @@ jobs:
|
|||||||
|
|
||||||
- name: Create archives
|
- name: Create archives
|
||||||
run: |
|
run: |
|
||||||
zip -r api.zip api/ -x "*.pyc" "*__pycache__*" "*.git*" "*.pytest_cache*"
|
echo "Creating api.zip..."
|
||||||
zip -r web.zip web/ -x "node_modules/*" ".git*" "dist/*" "*.log"
|
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
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -76,6 +80,7 @@ jobs:
|
|||||||
api.zip
|
api.zip
|
||||||
web.zip
|
web.zip
|
||||||
retention-days: 7
|
retention-days: 7
|
||||||
|
if-no-files-found: error # добавим, чтобы явно указывать, что файлы обязательны
|
||||||
|
|
||||||
# Явный статус для PR
|
# Явный статус для PR
|
||||||
pr-status:
|
pr-status:
|
||||||
|
|||||||
Reference in New Issue
Block a user