Skip to content

Commit b0d8ed3

Browse files
committed
enable releases again
1 parent 00e0535 commit b0d8ed3

File tree

3 files changed

+20
-33
lines changed

3 files changed

+20
-33
lines changed

.scripts/do_release.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

.scripts/publish_github_release.sh

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -177,22 +177,22 @@ for FILE in "${RELEASEFILES[@]}"; do
177177
echo DONE
178178
done
179179

180-
# echo -n "Publishing release... "
181-
# JSON=$(cat <<EOF
182-
# {
183-
# "draft": false
184-
# }
185-
# EOF
186-
# )
187-
# RESULT=`curl -s -w "\n%{http_code}\n" \
188-
# -X PATCH \
189-
# -H "Authorization: token $AUTH_TOKEN" \
190-
# -d "$JSON" \
191-
# "https://api.github.com/repos/$REPO/releases/$RELEASEID"`
192-
# if [ "`echo "$RESULT" | tail -1`" = "200" ]; then
193-
# echo DONE
194-
# else
195-
# echo FAILED
196-
# echo "$RESULT"
197-
# exit 1
198-
# fi
180+
echo -n "Publishing release... "
181+
JSON=$(cat <<EOF
182+
{
183+
"draft": false
184+
}
185+
EOF
186+
)
187+
RESULT=`curl -s -w "\n%{http_code}\n" \
188+
-X PATCH \
189+
-H "Authorization: token $AUTH_TOKEN" \
190+
-d "$JSON" \
191+
"https://api.github.com/repos/$REPO/releases/$RELEASEID"`
192+
if [ "`echo "$RESULT" | tail -1`" = "200" ]; then
193+
echo DONE
194+
else
195+
echo FAILED
196+
echo "$RESULT"
197+
exit 1
198+
fi

.scripts/publish_pypi_release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ echo -n 'Using setuptools version: '
77
python -c "import setuptools; print(setuptools.__version__)"
88

99
echo 'Uploading files to PyPi...'
10-
# twine upload 'dist/*'
10+
twine upload 'dist/*'

0 commit comments

Comments
 (0)