Skip to content

Commit b352d42

Browse files
committed
ci(release): use gh to upload asset
1 parent e030f31 commit b352d42

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/ci.yaml

+2-8
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,8 @@ jobs:
8585
- name: Upload release assets
8686
run: |
8787
set -x
88-
upload_url="${{steps.release.outputs.upload_url}}"
89-
tarball="bash-completion-$(cat version.txt).tar.xz"
90-
curl \
91-
--header "Authorization: Bearer ${{secrets.GITHUB_TOKEN}}" \
92-
--header "Accept: application/vnd.github.v3+json" \
93-
--header "Content-Type: application/x-xz-compressed-tar" \
94-
--data-binary "@$tarball" \
95-
"${upload_url%{*}?name=$tarball"
88+
gh release upload ${{steps.release.outputs.tag_name}} \
89+
bash-completion-$(cat version.txt).tar.xz
9690
if: steps.release.outputs.release_created
9791
- uses: actions/upload-artifact@v4
9892
with:

0 commit comments

Comments
 (0)