File tree Expand file tree Collapse file tree 3 files changed +20
-33
lines changed
Expand file tree Collapse file tree 3 files changed +20
-33
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -177,22 +177,22 @@ for FILE in "${RELEASEFILES[@]}"; do
177177 echo DONE
178178done
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
Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ echo -n 'Using setuptools version: '
77python -c " import setuptools; print(setuptools.__version__)"
88
99echo ' Uploading files to PyPi...'
10- # twine upload 'dist/*'
10+ twine upload ' dist/*'
You can’t perform that action at this time.
0 commit comments