Fix: Replace upload-artifact action in build-debug.yml with simple file copy
Build Debug / Build Android Debug APK (push) Successful in 3m53s
Build UUVPN / Build Android APK (push) Successful in 2m48s
Build UUVPN / Cleanup old artifacts (push) Failing after 1s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
Build Debug / Build Android Debug APK (push) Successful in 3m53s
Build UUVPN / Build Android APK (push) Successful in 2m48s
Build UUVPN / Cleanup old artifacts (push) Failing after 1s
Build Debug / Build iOS Debug App (push) Has been cancelled
Build UUVPN / Build iOS IPA (push) Has been cancelled
Build UUVPN / Create GitHub Release (push) Has been cancelled
Build UUVPN / Upload to TestFlight (push) Has been cancelled
Build UUVPN / Send Notification (push) Has been cancelled
This commit is contained in:
@@ -109,12 +109,18 @@ jobs:
|
||||
cd Android-kotlin-Code
|
||||
./gradlew app:assembleDebug --stacktrace
|
||||
|
||||
- name: Upload Android Debug APK
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: android-debug-apk
|
||||
path: Android-kotlin-Code/app/build/outputs/apk/**/*.apk
|
||||
retention-days: 7
|
||||
- name: List APK files
|
||||
run: |
|
||||
echo "Listing APK files..."
|
||||
find Android-kotlin-Code/app/build/outputs/apk -name "*.apk" -type f || echo "No APK files found"
|
||||
ls -la Android-kotlin-Code/app/build/outputs/apk/ || true
|
||||
|
||||
- name: Copy APK to artifacts
|
||||
run: |
|
||||
mkdir -p /tmp/artifacts
|
||||
find Android-kotlin-Code/app/build/outputs/apk -name "*.apk" -type f -exec cp {} /tmp/artifacts/ \;
|
||||
ls -la /tmp/artifacts/
|
||||
echo "APK files copied to /tmp/artifacts"
|
||||
|
||||
# ==================== iOS Debug 构建 ====================
|
||||
build-ios-debug:
|
||||
|
||||
@@ -199,6 +199,10 @@ jobs:
|
||||
APK_NAME="UUVPN-Android-${{ github.sha }}.apk"
|
||||
fi
|
||||
echo "apk_name=$APK_NAME" >> $GITHUB_OUTPUT
|
||||
# Find the APK file
|
||||
APK_PATH=$(find Android-kotlin-Code/app/build/outputs/apk -name "*.apk" -type f | head -1)
|
||||
echo "apk_path=$APK_PATH" >> $GITHUB_OUTPUT
|
||||
echo "Found APK: $APK_PATH"
|
||||
|
||||
- name: Rename APK for release
|
||||
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
|
||||
|
||||
Reference in New Issue
Block a user