Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(internal/kokoro): add ability to regen all DocFX YAML #3191

Merged
merged 3 commits into from Nov 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions internal/kokoro/publish_docs.sh
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