Skip to content

Commit 3c54b12

Browse files
authored
[action/cd] 整合所有output到一个包中 (#10136)
* [action/cd] 整合所有output到一个包中
1 parent 6073200 commit 3c54b12

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/bsp_buildings.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,3 +559,22 @@ jobs:
559559
curl -X POST -H "Authorization: token ${{ secrets.RTTHREAD_GITHUB_TOKEN }}" \
560560
-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."}' \
561561
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.pull_request.number }}/comments"
562+
# 整合所有的output为一个文件夹
563+
collect-artifacts:
564+
needs: build
565+
runs-on: ubuntu-latest
566+
if: github.event_name != 'pull_request' #排除Pull request
567+
steps:
568+
#这里会下载所有产物
569+
- name: Download all artifacts
570+
uses: actions/download-artifact@main
571+
with:
572+
path: output/
573+
merge-multiple: true
574+
- run: ls -R output/
575+
576+
- name: Upload combined output as artifact
577+
uses: actions/upload-artifact@main
578+
with:
579+
name: 00_all_bsp_output_${{ github.sha }}
580+
path: output/

0 commit comments

Comments
 (0)