gravitational / docs

Source code backing goteleport.com/docs
https://goteleport.com/docs
Apache License 2.0
11 stars 13 forks source link

Add workflow to deploy vercel preview #368

Closed dumez-k closed 1 year ago

dumez-k commented 1 year ago

Add github actions workflow to deploy a vercel preview when new PR's are opened or updated. A githubActions bot user will then comment the url of the preview deployment to allow faster docs review.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 10, 2023 9:34pm
benarent commented 1 year ago

githubActions bot

Maybe I'm missing this bit, where does the bot live and what updates do we need for the Teleport Repo.

dumez-k commented 1 year ago

githubActions bot

Maybe I'm missing this bit, where does the bot live and what updates do we need for the Teleport Repo.

Bot in this case refers to the GithubActions Runner. The virtual machine managed by github that executes the workflow. The comment that is being posted is utilizing the github script library and our github token.

Screenshot 2023-08-11 at 12 04 03 PM

^^This is what the preview comment will look like

We need to add the "Vercel Org ID" and "Vercel Project ID" to leverage the vercel api.