publish
This file
Path
scripts/publish
26 lines · 589 bytes
Last changed by
Publish workflow (#913)Tom Christiebefore adoptione586e5d
History of this fileTake it
The walk stopped after 200 commits: lines older than f06ca87 point at it.
Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
lines 1–2why, one step back1#!/bin/sh -e2Publish workflow (#913)Tom Christiebefore adoptione586e5d
lines 3–4why, one step back3VERSION_FILE="httpx/__init__.py"4Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
line 5why, one step back5if [ -d 'venv' ] ; thenPublish workflow (#913)Tom Christiebefore adoptione586e5d
lines 6–8why, one step back6 PREFIX="venv/bin/"7else8 PREFIX=""Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
lines 9–10why, one step back9fi10Publish workflow (#913)Tom Christiebefore adoptione586e5d
lines 11–13why, one step back11if [ ! -z "$GITHUB_ACTIONS" ]; then12 git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"13 git config --local user.name "GitHub Action"Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
line 14why, one step back14Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 15why, one step back15 VERSION=`grep __version__ ${VERSION_FILE} | grep -o '[0-9][^"]*'`Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
line 16why, one step back16Publish workflow (#913)Tom Christiebefore adoptione586e5d
lines 17–18why, one step back17 if [ "refs/tags/${VERSION}" != "${GITHUB_REF}" ] ; then18 echo "GitHub Ref '${GITHUB_REF}' did not match package version '${VERSION}'"Handle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
line 19why, one step back19 exit 1Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 20why, one step back20 fiHandle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
lines 21–22why, one step back21fi22Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 23why, one step back23set -xHandle h11.Connection.next_event() RemoteProtocolError (#524)toppkbefore adoptionf06ca87
lines 24–25why, one step back2425${PREFIX}twine upload dist/*Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 26why, one step back26${PREFIX}mkdocs gh-deploy --force