File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed
Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -141,10 +141,19 @@ jobs:
141141
142142 - name : Generate changelog
143143 run : |
144- git log --pretty=format:"* %s" > CHANGELOG.md
144+ mkdir release
145+ find artifacts -type f \( -name "*.itb" -o -name "*.tar.gz*" -o -name "*.img" -o -name "*.deb" \) \
146+ -exec cp {} release/ \;
145147
146- # - name: Create release
147- # uses: softprops/action-gh-release@v2
148- # with:
149- # files: artifacts/**/*
150- # body_path: CHANGELOG.md
148+ - name : Generate changelog
149+ run : |
150+ echo -e "# Release\n**Commit:** ${{ github.sha }}\n**Branch:** ${{ env.BRANCH }}\n**Kernel:** ${{ env.KERNELVER }}\n\n## Changelog\n" > CHANGELOG.md
151+ git log --pretty=format:"- **%s** (`%h`)" >> CHANGELOG.md
152+
153+ - name : Create release
154+ uses : softprops/action-gh-release@v2
155+ with :
156+ files : release/*
157+ body_path : CHANGELOG.md
158+ draft : ${{ endsWith(github.ref, '-ci') }}
159+ tag_name : " CI-BUILD-${{ env.BRANCH }}-${{ env.KERNELVER }}-${{ env.DT }}"
You can’t perform that action at this time.
0 commit comments