Browse Source

[action/cd] 整合所有output到一个包中 (#10136)

* [action/cd] 整合所有output到一个包中
Supper Thomas 3 months ago
parent
commit
3c54b1262f
1 changed files with 19 additions and 0 deletions
  1. 19 0
      .github/workflows/bsp_buildings.yml

+ 19 - 0
.github/workflows/bsp_buildings.yml

@@ -559,3 +559,22 @@ jobs:
           curl -X POST -H "Authorization: token ${{ secrets.RTTHREAD_GITHUB_TOKEN }}" \
           -d '{"body":"@${{ github.actor }}, Thank you for your contribution, but there was an error with the action. Could you please help check the BSP compilation issue? Thank you."}' \
           "https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
+  # 整合所有的output为一个文件夹 
+  collect-artifacts:
+    needs: build
+    runs-on: ubuntu-latest
+    if: github.event_name != 'pull_request' #排除Pull request
+    steps:
+      #这里会下载所有产物
+      - name: Download all artifacts
+        uses: actions/download-artifact@main
+        with:
+          path: output/
+          merge-multiple: true
+      - run: ls -R output/
+
+      - name: Upload combined output as artifact
+        uses: actions/upload-artifact@main
+        with:
+          name: 00_all_bsp_output_${{ github.sha }}  
+          path: output/