Эх сурвалжийг харах

Fix artifact structure: eliminate nested folders in release assets

TheWildJames 10 сар өмнө
parent
commit
65bd2d9d3e

+ 2 - 2
.github/workflows/build.yml

@@ -407,7 +407,7 @@ jobs:
           echo "CONFIG_KSU_SUSFS_SUS_SU=n" >> "${{ env.DEFCONFIG }}"
 
       - name: Configure Sound 1
-        if: true
+        if: false
         run: |
           cd "$CONFIG"
           # Sound Configuration
@@ -432,7 +432,7 @@ jobs:
           #cat Wild_KSU/kernel/export_symbol.txt | awk '{sub("[ \t]+","");print "  "$0}' >> $SYMBOL_LIST
 
       - name: Configure Sound 2
-        if: true
+        if: false
         run: |
           cd "$CONFIG"
           cp ../kernel_patches/wild/bypass_patches/abi_bypass_gki.patch ./

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

@@ -190,8 +190,10 @@ jobs:
               if [[ "$(basename "$dir")" == *"-AnyKernel3" ]]; then
                 artifact_name=$(basename "$dir")
                 echo "Creating ZIP for $artifact_name..."
-                # The entire directory IS the AnyKernel3 content, so zip it directly
-                zip -r -9 "${artifact_name}.zip" "$dir"
+                # Navigate into the directory and zip its contents directly
+                cd "$dir"
+                zip -r -9 "../../${artifact_name}.zip" ./*
+                cd - > /dev/null
                 echo "Uploading ${artifact_name}.zip..."
                 gh release upload ${{ env.NEW_TAG }} "${artifact_name}.zip"
               fi