From b352d421d530dec0f004cf868999e58d973dde85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Wed, 21 Feb 2024 07:45:38 +0200 Subject: [PATCH] ci(release): use `gh` to upload asset --- .github/workflows/ci.yaml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 24d3b7ea409..27480fa85fa 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -85,14 +85,8 @@ jobs: - name: Upload release assets run: | set -x - upload_url="${{steps.release.outputs.upload_url}}" - tarball="bash-completion-$(cat version.txt).tar.xz" - curl \ - --header "Authorization: Bearer ${{secrets.GITHUB_TOKEN}}" \ - --header "Accept: application/vnd.github.v3+json" \ - --header "Content-Type: application/x-xz-compressed-tar" \ - --data-binary "@$tarball" \ - "${upload_url%{*}?name=$tarball" + gh release upload ${{steps.release.outputs.tag_name}} \ + bash-completion-$(cat version.txt).tar.xz if: steps.release.outputs.release_created - uses: actions/upload-artifact@v4 with: