Skip to content

Commit 387b8e5

Browse files
busunkim96theacodes
authored andcommitted
IoT: Fix publish docs build. (googleapis#8420)
* Fix build config. * Fix publish script. * Remove unused script.
1 parent ed2366c commit 387b8e5

4 files changed

Lines changed: 18 additions & 12 deletions

File tree

.kokoro/docs/common.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@ before_action {
3838
}
3939
}
4040

41+
before_action {
42+
fetch_keystore {
43+
keystore_resource {
44+
keystore_config_id: 73713
45+
keyname: "docuploader_service_account"
46+
}
47+
}
48+
}

.kokoro/docs/iot.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ env_vars: {
66
value: "iot"
77
}
88

9-
env vars: {
9+
env_vars: {
1010
key: "NAME"
1111
value: "iot"
1212
}

.kokoro/publish-docs.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,14 @@ export PYTHONUNBUFFERED=1
77

88
cd github/google-cloud-python/${PACKAGE}
99

10-
VERSION=$(python3 ../test_utils/scripts/get_package_version.py)
10+
VERSION=$(python3 setup.py --version)
11+
12+
# Remove old nox
13+
python3.6 -m pip uninstall --yes --quiet nox-automation
14+
15+
# Install nox
16+
python3.6 -m pip install --upgrade --quiet nox
17+
python3.6 -m nox --version
1118

1219
# build docs
1320
nox -s docs
@@ -23,6 +30,4 @@ python3 -m docuploader create-metadata \
2330
--language python
2431

2532
# upload docs
26-
python3 -m docuploader upload . \
27-
--credentials ${CREDENTIALS} \
28-
--staging-bucket ${STAGING_BUCKET}
33+
python3 -m docuploader upload . --staging-bucket docs-staging

test_utils/scripts/get_package_version.py

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)