blob: cf855559a2c5cee933cbb3e1bc6b7713dde91f77 [file] [log] [blame]
Bu Sun Kim65e33c02019-10-25 10:45:00 -07001#!/bin/bash
2
3set -eo pipefail
4
5# Start the releasetool reporter
6python3 -m pip install gcp-releasetool
7python3 -m releasetool publish-reporter-script > /tmp/publisher-script; source /tmp/publisher-script
8
9# Ensure that we have the latest versions of Twine, Wheel, and Setuptools.
10python3 -m pip install --upgrade twine wheel setuptools
11
12# Disable buffering, so that the logs stream through.
13export PYTHONUNBUFFERED=1
14
15# Move into the package, build the distribution and upload.
16TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password")
17cd github/google-auth-library-python
18python3 setup.py sdist bdist_wheel
19twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/*