Skip to content

Commit

Permalink
Fix release script. (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
igankevich authored May 11, 2024
1 parent 9106919 commit 6332787
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions ci/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6332787

Please sign in to comment.