Skip to content

Commit

Permalink
use curl to avoid issues with http
Browse files Browse the repository at this point in the history
  • Loading branch information
fdev31 committed Jun 5, 2024
1 parent bcfb62d commit 7447067
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
27 changes: 17 additions & 10 deletions scripts/make_release
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,23 @@ poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD
# }}}

# Make the release

rel_id=$(http -b -j POST $URL/releases \
"Accept: application/vnd.github+json" \
"Authorization: Bearer ${TOKEN}" \
"X-GitHub-Api-Version: 2022-11-28" \
tag_name=${version} \
target_commitish=main \
"name=${title}" \
body=@RELEASE_NOTES.md \
draft:=false prerelease:=false generate_release_notes:=false | jq .id)
#
rel_id=$(curl -s -X POST $URL/releases \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${TOKEN}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
-d @- <<EOF | jq .id
{
"tag_name": "${version}",
"target_commitish": "main",
"name": "${title}",
"body": $(jq -Rs . < RELEASE_NOTES.md),
"draft": false,
"prerelease": false,
"generate_release_notes": false
}
EOF
)

echo "RELEASE ID: $rel_id"

Expand Down
2 changes: 1 addition & 1 deletion scripts/update_get-pypr.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
set -e
url=$(http https://pypi.org/pypi/pyprland/json | jq '.urls[] |.url' |grep 'whl"$')
url=$(curl https://pypi.org/pypi/pyprland/json | jq '.urls[] |.url' |grep 'whl"$')

sed -i "s#^URL=.*#URL=${url}#" get-pypr

0 comments on commit 7447067

Please sign in to comment.