Skip to content

Commit

Permalink
enable releases again
Browse files Browse the repository at this point in the history
  • Loading branch information
TurBoss committed Feb 24, 2021
1 parent 00e0535 commit b0d8ed3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 33 deletions.
13 changes: 0 additions & 13 deletions .scripts/do_release.sh

This file was deleted.

38 changes: 19 additions & 19 deletions .scripts/publish_github_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,22 +177,22 @@ for FILE in "${RELEASEFILES[@]}"; do
echo DONE
done

# echo -n "Publishing release... "
# JSON=$(cat <<EOF
# {
# "draft": false
# }
# EOF
# )
# RESULT=`curl -s -w "\n%{http_code}\n" \
# -X PATCH \
# -H "Authorization: token $AUTH_TOKEN" \
# -d "$JSON" \
# "https://api.github.com/repos/$REPO/releases/$RELEASEID"`
# if [ "`echo "$RESULT" | tail -1`" = "200" ]; then
# echo DONE
# else
# echo FAILED
# echo "$RESULT"
# exit 1
# fi
echo -n "Publishing release... "
JSON=$(cat <<EOF
{
"draft": false
}
EOF
)
RESULT=`curl -s -w "\n%{http_code}\n" \
-X PATCH \
-H "Authorization: token $AUTH_TOKEN" \
-d "$JSON" \
"https://api.github.com/repos/$REPO/releases/$RELEASEID"`
if [ "`echo "$RESULT" | tail -1`" = "200" ]; then
echo DONE
else
echo FAILED
echo "$RESULT"
exit 1
fi
2 changes: 1 addition & 1 deletion .scripts/publish_pypi_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ echo -n 'Using setuptools version: '
python -c "import setuptools; print(setuptools.__version__)"

echo 'Uploading files to PyPi...'
# twine upload 'dist/*'
twine upload 'dist/*'

0 comments on commit b0d8ed3

Please sign in to comment.