Skip to content
Permalink
Browse files
feat(internal/kokoro): add ability to regen all DocFX YAML (#3191)
Co-authored-by: Cody Oss <6331106+codyoss@users.noreply.github.com>
  • Loading branch information
tbpg and codyoss committed Nov 11, 2020
1 parent ba853fd commit e12046bc4431d33aee72c324e6eb5cc907a4214a
Showing with 8 additions and 4 deletions.
  1. +8 −4 internal/kokoro/publish_docs.sh
@@ -27,13 +27,17 @@ cd github/google-cloud-go/internal/godocfx
go install
cd -

cd $(mktemp -d)

export GOOGLE_APPLICATION_CREDENTIALS=$KOKORO_KEYSTORE_DIR/72523_go_integration_service_account
# Keep GCLOUD_TESTS_GOLANG_PROJECT_ID in sync with continuous.sh.
export GCLOUD_TESTS_GOLANG_PROJECT_ID=dulcet-port-762
# Generate the YAML and a docs.metadata file.
godocfx -project $GCLOUD_TESTS_GOLANG_PROJECT_ID -new-modules cloud.google.com/go

if [[ -n "$FORCE_GENERATE_ALL" ]]; then
for m in $(find . -name go.mod -execdir go list -m \; | grep -v internal); do
godocfx -out obj/api/$m@latest $m
done
else
godocfx -project $GCLOUD_TESTS_GOLANG_PROJECT_ID -new-modules cloud.google.com/go
fi

for f in $(find obj/api -name docs.metadata); do
d=$(dirname $f)

0 comments on commit e12046b

Please sign in to comment.