Skip to content
Myr

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 file

Take it

The walk stopped after 200 commits: lines older than 8710079 point at it.

asgi: Send http.disconnect message on receive() after response complete (#909)Jamie Hewlandbefore adoption8710079

lines 1–2why, one step back
1#!/bin/sh -e
2

Fix VERSION_FILE in publish script. (#916)Tom Christiebefore adoption3010261

line 3why, one step back
3VERSION_FILE="httpx/__version__.py"

asgi: Send http.disconnect message on receive() after response complete (#909)Jamie Hewlandbefore adoption8710079

lines 4–26why, one step back
4
5if [ -d 'venv' ] ; then6 PREFIX="venv/bin/"7else8 PREFIX=""9fi1011if [ ! -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"1415 VERSION=`grep __version__ ${VERSION_FILE} | grep -o '[0-9][^"]*'`1617 if [ "refs/tags/${VERSION}" != "${GITHUB_REF}" ] ; then18 echo "GitHub Ref '${GITHUB_REF}' did not match package version '${VERSION}'"19 exit 120 fi21fi2223set -x2425${PREFIX}twine upload dist/*26${PREFIX}mkdocs gh-deploy --force