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

* [action/cd] 整合所有output到一个包中
This commit is contained in:
Supper Thomas 2025-03-24 10:55:51 +08:00 committed by GitHub
parent 6073200d2e
commit 3c54b1262f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 19 additions and 0 deletions

View File

@ -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/