publish
This file
Path
scripts/publish
26 lines · 592 bytes
Last changed by
Fix VERSION_FILE in publish script. (#916)Tom Christiebefore adoption3010261
History of this fileTake it
The walk stopped after 200 commits: lines older than c033ed1 point at it.
TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
lines 1–2why, one step back1#!/bin/sh -e2Fix VERSION_FILE in publish script. (#916)Tom Christiebefore adoption3010261
line 3why, one step back3VERSION_FILE="httpx/__version__.py"Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 4why, one step back4TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
line 5why, one step back5if [ -d 'venv' ] ; thenPublish workflow (#913)Tom Christiebefore adoptione586e5d
lines 6–8why, one step back6 PREFIX="venv/bin/"7else8 PREFIX=""TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
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"TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
line 14why, one step back14Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 15why, one step back15 VERSION=`grep __version__ ${VERSION_FILE} | grep -o '[0-9][^"]*'`TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
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}'"TimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
line 19why, one step back19 exit 1Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 20why, one step back20 fiTimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
lines 21–22why, one step back21fi22Publish workflow (#913)Tom Christiebefore adoptione586e5d
line 23why, one step back23set -xTimeoutConfig -> Timeout (#591)Tom Christiebefore adoptionc033ed1
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