aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshi Automation Bot <yoshi-automation@google.com>2021-04-15 06:24:03 -0700
committerGitHub <noreply@github.com>2021-04-15 13:24:03 +0000
commit02ceb057ac96ae501454d89efe453028d7c5cd8e (patch)
tree84a0016a99212a2156d799a4e5946fc2dec42f1b
parentc4ecb6ce55deb57469e380d95d7a3db2e9160fa0 (diff)
downloadgoogle-api-python-client-02ceb057ac96ae501454d89efe453028d7c5cd8e.tar.gz
build: use PyPI API token in secret manager (#1293)
This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/e0804924-dc62-46a8-9754-d4c5ab9a96a5/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/043cc620d6a6111816d9e09f2a97208565fde958
-rwxr-xr-x.kokoro/release.sh4
-rw-r--r--.kokoro/release/common.cfg14
-rw-r--r--synth.metadata4
3 files changed, 6 insertions, 16 deletions
diff --git a/.kokoro/release.sh b/.kokoro/release.sh
index 9e91f247a..e10bd8921 100755
--- a/.kokoro/release.sh
+++ b/.kokoro/release.sh
@@ -26,7 +26,7 @@ python3 -m pip install --upgrade twine wheel setuptools
export PYTHONUNBUFFERED=1
# Move into the package, build the distribution and upload.
-TWINE_PASSWORD=$(cat "${KOKORO_KEYSTORE_DIR}/73713_google_cloud_pypi_password")
+TWINE_PASSWORD=$(cat "${KOKORO_GFILE_DIR}/secret_manager/google-cloud-pypi-token")
cd github/google-api-python-client
python3 setup.py sdist bdist_wheel
-twine upload --username gcloudpypi --password "${TWINE_PASSWORD}" dist/*
+twine upload --username __token__ --password "${TWINE_PASSWORD}" dist/*
diff --git a/.kokoro/release/common.cfg b/.kokoro/release/common.cfg
index 3efc6f3bb..2ea8e554f 100644
--- a/.kokoro/release/common.cfg
+++ b/.kokoro/release/common.cfg
@@ -23,18 +23,8 @@ env_vars: {
value: "github/google-api-python-client/.kokoro/release.sh"
}
-# Fetch PyPI password
-before_action {
- fetch_keystore {
- keystore_resource {
- keystore_config_id: 73713
- keyname: "google_cloud_pypi_password"
- }
- }
-}
-
# Tokens needed to report release status back to GitHub
env_vars: {
key: "SECRET_MANAGER_KEYS"
- value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem"
-} \ No newline at end of file
+ value: "releasetool-publish-reporter-app,releasetool-publish-reporter-googleapis-installation,releasetool-publish-reporter-pem,google-cloud-pypi-token"
+}
diff --git a/synth.metadata b/synth.metadata
index e428d5ed9..822bbc923 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,14 +4,14 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/google-api-python-client.git",
- "sha": "bd2c5f9c5c5181e21cf970eb6f966afcf0323723"
+ "sha": "c4ecb6ce55deb57469e380d95d7a3db2e9160fa0"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
- "sha": "0a071b3460344886297a304253bf924aa68ddb7e"
+ "sha": "043cc620d6a6111816d9e09f2a97208565fde958"
}
}
],