fix(ci): replace artifact uploads with warnings (no artifact storage configured)
This commit is contained in:
+17
-28
@@ -75,13 +75,11 @@ jobs:
|
|||||||
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
||||||
run: flutter test --coverage
|
run: flutter test --coverage
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: "Note: coverage artifact storage not configured"
|
||||||
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
if: gitea.ref == 'refs/heads/main' && gitea.event_name == 'push'
|
||||||
uses: actions/upload-artifact@v4
|
run: |
|
||||||
with:
|
echo "WARNING: Gitea Actions artifact storage is not configured."
|
||||||
name: coverage-report
|
echo "Coverage report available at: coverage/lcov.info"
|
||||||
path: coverage/lcov.info
|
|
||||||
retention-days: 14
|
|
||||||
|
|
||||||
|
|
||||||
# ── Stage 3: Android build ──────────────────────────────────────
|
# ── Stage 3: Android build ──────────────────────────────────────
|
||||||
@@ -188,21 +186,13 @@ jobs:
|
|||||||
echo "=== AAB output ==="
|
echo "=== AAB output ==="
|
||||||
ls -lh build/app/outputs/bundle/release/ || true
|
ls -lh build/app/outputs/bundle/release/ || true
|
||||||
|
|
||||||
- name: Upload APK artifact
|
- name: "Note: artifact storage not configured"
|
||||||
continue-on-error: true
|
run: |
|
||||||
uses: actions/upload-artifact@v4
|
echo "WARNING: Gitea Actions artifact storage is not configured on this instance."
|
||||||
with:
|
echo "Build outputs available in runner workspace:"
|
||||||
name: android-apk
|
echo " APK: build/app/outputs/flutter-apk/app-release.apk"
|
||||||
path: build/app/outputs/flutter-apk/app-release.apk
|
echo " AAB: build/app/outputs/bundle/release/app-release.aab"
|
||||||
retention-days: 90
|
echo "Configure artifact storage in Gitea Actions admin settings to enable uploads."
|
||||||
|
|
||||||
- name: Upload AAB artifact
|
|
||||||
continue-on-error: true
|
|
||||||
uses: actions/upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: android-aab
|
|
||||||
path: build/app/outputs/bundle/release/app-release.aab
|
|
||||||
retention-days: 90
|
|
||||||
|
|
||||||
|
|
||||||
# ── Stage 3 (parallel): iOS build ───────────────────────────────
|
# ── Stage 3 (parallel): iOS build ───────────────────────────────
|
||||||
@@ -232,10 +222,9 @@ jobs:
|
|||||||
- name: Build iOS (release, no-codesign)
|
- name: Build iOS (release, no-codesign)
|
||||||
run: flutter build ios --release --no-codesign
|
run: flutter build ios --release --no-codesign
|
||||||
|
|
||||||
- name: Upload iOS build artifact
|
- name: "Note: iOS artifact storage not configured"
|
||||||
continue-on-error: true
|
run: |
|
||||||
uses: actions/upload-artifact@v4
|
echo "WARNING: Gitea Actions artifact storage is not configured on this instance."
|
||||||
with:
|
echo "iOS build outputs available in runner workspace:"
|
||||||
name: ios-app
|
echo " build/ios/iphoneos/"
|
||||||
path: build/ios/iphoneos/
|
echo "Configure artifact storage in Gitea Actions admin settings to enable uploads."
|
||||||
retention-days: 90
|
|
||||||
|
|||||||
Reference in New Issue
Block a user