Skip to content

Commit d93fa26

Browse files
committed
fix: update build.yml to fix publish
1 parent 0bb7562 commit d93fa26

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff 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-*/**/*

0 commit comments

Comments
 (0)