From d75c53344416bac6ecf27614f6297478892c0d55 Mon Sep 17 00:00:00 2001 From: Ivan Gankevich Date: Sat, 11 May 2024 20:01:27 +0200 Subject: [PATCH] Fix release script. --- ci/release.sh | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/ci/release.sh b/ci/release.sh index a03c841..ff93234 100755 --- a/ci/release.sh +++ b/ci/release.sh @@ -25,19 +25,17 @@ curl \ }' cat /tmp/response release_id="$(jq -r .id /tmp/response)" -for dir in packages/*; do - for file in "$dir"/*; do - name="$(basename "$file")" - curl \ - --silent \ - --fail \ - --location \ - -X POST \ - -H "Accept: application/vnd.github+json" \ - -H "Authorization: Bearer $GITHUB_TOKEN" \ - -H "X-GitHub-Api-Version: 2022-11-28" \ - -H "Content-Type: application/octet-stream" \ - "https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$release_id/assets?name=$name" \ - --data-binary "@$file" - done +for file in packages/*.tar.gz*; do + name="$(basename "$file")" + echo curl \ + --silent \ + --fail \ + --location \ + -X POST \ + -H "Accept: application/vnd.github+json" \ + -H "Authorization: Bearer $GITHUB_TOKEN" \ + -H "X-GitHub-Api-Version: 2022-11-28" \ + -H "Content-Type: application/octet-stream" \ + "https://uploads.github.com/repos/$GITHUB_REPOSITORY/releases/$release_id/assets?name=$name" \ + --data-binary "@$file" done