Debian Codegraph @

scripts/publish

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`. -e
2
3 VERSION_FILE="httpx/__version__.py"
4
5 if [scip-shell system . . `[`. -d 'venv' ] ; then
6 PREFIX="venv/bin/"
7 else
8 PREFIX=""
9 fi
10
11 if [scip-shell system . . `[`. ! -z "$GITHUB_ACTIONS" ]; then
12 gitscip-shell system . . git. config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
13 gitscip-shell system . . git. config --local user.name "GitHub Action"
14
15 VERSION=`grepscip-shell system . . grep. __version__ ${VERSION_FILE} | grepscip-shell system . . grep. -o '[0-9][^"]*'`
16
17 if [scip-shell system . . `[`. "refs/tags/${VERSION}" != "${GITHUB_REF}" ] ; then
18 echoscip-shell system . . echo. "GitHub Ref '${GITHUB_REF}' did not match package version '${VERSION}'"
19 exit 1
20 fi
21 fi
22
23 set -x
24
25 ${PREFIX}twine upload dist/*
26 ${PREFIX}mkdocs gh-deploy --force