golang.org/x/build@v0.0.0-20240506185731-218518f32b70/cloudfns/wikiwebhook/README.md (about) 1 <!-- Auto-generated by x/build/update-readmes.go --> 2 3 [](https://pkg.go.dev/golang.org/x/build/cloudfns/wikiwebhook) 4 5 # golang.org/x/build/cloudfns/wikiwebhook 6 7 Package wikiwebhook implements an Google Cloud Function HTTP handler that expects GitHub webhook change events. 8 <!-- End of auto-generated section --> 9 10 ## Deploying 11 12 To deploy, run the following command sequence in this directory: 13 14 ```sh 15 DEPLOYDIR="$(mktemp -d)" && cp -R . ../../go.{mod,sum} "$DEPLOYDIR" && \ 16 (cd "$DEPLOYDIR" && \ 17 go mod edit -module golang.org/x/build/cloudfns/wikiwebhook && go mod tidy && go test ./... && \ 18 gcloud functions deploy GitHubWikiChangeWebHook \ 19 --project=symbolic-datum-552 \ 20 --runtime go120 \ 21 --trigger-http \ 22 --set-env-vars="PUBSUB_TOPIC=github.webhooks.golang.go.wiki,GCP_PROJECT=symbolic-datum-552,GITHUB_WEBHOOK_SECRET=$(gcloud --project=symbolic-datum-552 secrets versions access latest --secret=github-webhook-secret)") && \ 23 rm -rf "$DEPLOYDIR" 24 ```