Skip to content

Commit 7257af6

Browse files
authored
---
yaml --- r: 34673 b: refs/heads/autosynth-texttospeech c: cd4d635 h: refs/heads/master i: 34671: 22f4456
1 parent e240d26 commit 7257af6

3 files changed

Lines changed: 86 additions & 1 deletion

File tree

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ refs/heads/autosynth-scheduler: a3de6480746d1cd586ca8b9d75c55a636f371539
140140
refs/heads/autosynth-spanner: d963fe4368e79cf6abae5d511785e8ced8ac57f4
141141
refs/heads/autosynth-speech: c563dcd420cce0a37c39b1b9c24be1b9ba604dc7
142142
refs/heads/autosynth-tasks: 25d1eafe8cb66b00e3dad765dac74a5b45b83e63
143-
refs/heads/autosynth-texttospeech: d931fac64e331bbcffea7ff9dbd271e31bac5e05
143+
refs/heads/autosynth-texttospeech: cd4d6359d131b1d23af2045d0c5d1c3f8cd7a8f2
144144
refs/heads/autosynth-trace: c94eef6e4d9c6fd24888216e28ca7271959c1cf0
145145
refs/heads/autosynth-websecurityscanner: fa561b356aabcd92d415ae8dc88fd8d87dbc5b23
146146
refs/heads/bigquerystorage: 06db74d123d7f8a3ef48755c2fcabed09faf8e64
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Format: //devtools/kokoro/config/proto/build.proto
2+
env_vars: {
3+
key: "STAGING_BUCKET"
4+
value: "docs_staging"
5+
}
6+
7+
env_vars: {
8+
key: "TRAMPOLINE_BUILD_FILE"
9+
value: "github/google-cloud-java/.kokoro/release/publish_javadoc.sh"
10+
}
11+
12+
before_action {
13+
fetch_keystore {
14+
keystore_resource {
15+
keystore_config_id: 73713
16+
keyname: "docuploader_service_account"
17+
}
18+
}
19+
}
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
#!/bin/bash
2+
# Copyright 2019 Google Inc.
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
set -eo pipefail
17+
18+
if [[ -z "${CREDENTIALS}" ]]; then
19+
CREDENTIALS=${KOKORO_KEYSTORE_DIR}/73713-docuploader_service_account
20+
fi
21+
22+
if [[ -z "${STAGING_BUCKET}" ]]; then
23+
echo "Need to set STAGING_BUCKET environment variable"
24+
exit 1
25+
fi
26+
27+
# work from the git root directory
28+
pushd $(dirname "$0")/../../
29+
30+
# install docuploader package
31+
python3 -m pip install gcp-docuploader
32+
33+
# compile all packages
34+
mvn clean install -B -DskipTests=true
35+
36+
build_and_publish_site() {
37+
DIRECTORY=$1
38+
NAME=$1
39+
VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3)
40+
41+
pushd ${DIRECTORY}
42+
43+
# build the docs
44+
mvn site
45+
mvn site:stage -DtopSiteURL=https://googleapis.dev/java/${NAME}/${VERSION}
46+
47+
pushd target/staging/site/${NAME}/apidocs
48+
49+
# create metadata
50+
python3 -m docuploader create-metadata \
51+
--name ${NAME} \
52+
--version ${VERSION} \
53+
--language java
54+
55+
# upload docs
56+
python3 -m docuploader upload . \
57+
--credentials ${CREDENTIALS} \
58+
--staging-bucket ${STAGING_BUCKET}
59+
60+
popd
61+
popd
62+
}
63+
64+
# TODO (chingor): split all the artifacts
65+
build_and_publish_site google-api-grpc
66+
build_and_publish_site google-cloud-clients

0 commit comments

Comments
 (0)