Skip to content

Commit bb8eb96

Browse files
committed
test(build.yml): use gh CLI instead
1 parent 4f8959f commit bb8eb96

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,11 +202,19 @@ jobs:
202202
run: ls -laR .
203203
- name: Delete all files over 2G # see issue 40
204204
run: find . -type f -size +2G -exec rm -v {} \;
205-
- name: Draft release
206-
uses: xresloader/upload-to-github-release@v1.6.0
207-
with:
208-
file: clang-tools-llvm-project*
209-
draft: true
210-
overwrite: false
205+
- name: Checkout code
206+
uses: actions/checkout@v4
207+
- name: Get short SHA
208+
id: sha
209+
run: echo "short_sha=${GITHUB_SHA:0:8}" >> $GITHUB_OUTPUT
210+
- name: Create draft release and upload assets
211211
env:
212212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
213+
run: |
214+
RELEASE_TAG="master-${{ steps.sha.outputs.short_sha }}"
215+
gh release create "$RELEASE_TAG" \
216+
./clang-tools-llvm-project-*/* \
217+
--title "$RELEASE_TAG" \
218+
--notes "Draft release of prebuilt clang tools" \
219+
--draft \
220+
--clobber

0 commit comments

Comments
 (0)