File tree Expand file tree Collapse file tree 1 file changed +8
-14
lines changed
Expand file tree Collapse file tree 1 file changed +8
-14
lines changed Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ jobs:
191191 retention-days : 1
192192 draft-release :
193193 runs-on : ubuntu-22.04
194- if : github.event_name != 'pull_request'
194+ # if: github.event_name != 'pull_request'
195195 needs : build
196196 steps :
197197 - name : Download artifacts
@@ -203,18 +203,12 @@ jobs:
203203 run : ls -laR clang-tools-artifacts
204204 - name : Delete all files over 2G # see issue 40
205205 run : find clang-tools-artifacts -type f -size +2G -exec rm -v {} \;
206- - name : Checkout code
207- uses : actions/checkout@v4
208- - name : Get short SHA
209- id : sha
210- run : echo "short_sha=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
211- - name : Create draft release and upload assets
206+ - name : Draft release
212207 env :
213208 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
214- run : |
215- RELEASE_TAG="master-${{ steps.sha.outputs.short_sha }}"
216- gh release create "$RELEASE_TAG" \
217- clang-tools-artifacts\* \
218- --title "$RELEASE_TAG" \
219- --notes "Draft release of prebuilt clang tools" \
220- --draft
209+ uses : svenstaro/upload-release-action@v2
210+ with :
211+ repo_token : ${{ secrets.GITHUB_TOKEN }}
212+ draft : true
213+ file_glob : true
214+ file : clang-*/**/*
You can’t perform that action at this time.
0 commit comments