Просмотр исходного кода

ci(workflow): replace gh release upload with artifact upload

The change replaces the direct GitHub release upload with GitHub Actions artifact upload for AIO-REJ.zip, providing better artifact management and traceability. Also removes unnecessary misc artifacts download step.
TheWildJames 8 месяцев назад
Родитель
Сommit
0f1459a35e
1 измененных файлов с 7 добавлено и 9 удалено
  1. 7 9
      .github/workflows/main.yml

+ 7 - 9
.github/workflows/main.yml

@@ -185,13 +185,17 @@ jobs:
             cd aio-rejects
             zip -r -q -9 ../AIO-REJ.zip .
             cd ..
-            
-            echo "Uploading AIO-REJ.zip..."
-            gh release upload "${{ env.NEW_TAG }}" "AIO-REJ.zip" --clobber
         else
             echo "No rejects found to upload."
         fi
 
+    - name: Upload AIO-REJ Artifact
+      uses: actions/upload-artifact@v4
+      with:
+        name: AIO-REJ
+        path: AIO-REJ.zip
+        if-no-files-found: ignore
+
   release:
     runs-on: ubuntu-latest
     if: inputs.release_type != 'Actions'
@@ -284,12 +288,6 @@ jobs:
         path: ./downloaded-artifacts
         pattern: '*-AnyKernel3'
 
-    - name: Download Misc Artifacts
-      uses: actions/download-artifact@v5
-      with:
-        path: ./downloaded-artifacts
-        pattern: '*-Normal-Misc'
-
     - name: Upload Release Assets
       run: |+
         shopt -s nullglob