Skip to content

Commit

Permalink
feat(internal/kokoro): add ability to regen all DocFX YAML (#3191)
Browse files Browse the repository at this point in the history
Co-authored-by: Cody Oss <6331106+codyoss@users.noreply.github.com>
  • Loading branch information
tbpg and codyoss authored Nov 11, 2020
1 parent ba853fd commit e12046b
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions internal/kokoro/publish_docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e12046b

Please sign in to comment.