Bläddra i källkod

Simplify upload logic to zip artifact directories directly

- Removed unnecessary subdirectory checks since artifacts are already in correct format
- Zip the entire downloaded artifact directory as it contains the AnyKernel3 content
- This matches the actual artifact structure: whatever-anykernel3/subfolders/files
TheWildJames 10 månader sedan
förälder
incheckning
aad8cdead9
1 ändrade filer med 4 tillägg och 11 borttagningar
  1. 4 11
      .github/workflows/main.yml

+ 4 - 11
.github/workflows/main.yml

@@ -256,17 +256,10 @@ jobs:
             if [[ "$(basename "$dir")" == *"-AnyKernel3" ]]; then
               artifact_name=$(basename "$dir")
               echo "Creating ZIP for $artifact_name..."
-              cd "$dir"
-              # The AnyKernel3 directory is directly in this folder
-              if [ -d "AnyKernel3" ]; then
-                zip -r -9 "${artifact_name}.zip" AnyKernel3/
-                echo "Uploading ${artifact_name}.zip..."
-                gh release upload ${{ env.NEW_TAG }} "${artifact_name}.zip"
-              else
-                echo "Warning: AnyKernel3 directory not found in $artifact_name"
-                ls -la
-              fi
-              cd - > /dev/null
+              # The entire directory IS the AnyKernel3 content, so zip it directly
+              zip -r -9 "${artifact_name}.zip" "$dir"
+              echo "Uploading ${artifact_name}.zip..."
+              gh release upload ${{ env.NEW_TAG }} "${artifact_name}.zip"
             fi
           done