Browse Source

Update main.yml

James McConnell 1 year ago
parent
commit
a14d541d84
1 changed files with 8 additions and 6 deletions
  1. 8 6
      .github/workflows/main.yml

+ 8 - 6
.github/workflows/main.yml

@@ -210,10 +210,12 @@ jobs:
             git tag $NEW_TAG
             git push origin $NEW_TAG
 
-      - name: Download Artifacts
+      - name: Download Build Artifacts Only
         uses: actions/download-artifact@v4
         with:
           path: ./downloaded-artifacts
+          pattern: '*_kernel-*'
+          merge-multiple: true
 
       - name: Set release body
         run: |
@@ -273,11 +275,11 @@ jobs:
       - name: Upload Release Assets
         run: |
           for file in ./downloaded-artifacts/*_kernel-*/*; do
-              if [ -d "$file" ]; then
-                  continue
-              fi
-              echo "Uploading $file..."
-              gh release upload ${{ env.NEW_TAG }} "$file"
+            if [ -d "$file" ]; then
+              continue
+            fi
+            echo "Uploading $file..."
+            gh release upload ${{ env.NEW_TAG }} "$file"
           done
 
       - name: Display Files Uploaded