Hi, I am trying to create a simple site with the following requirements:
- I have a landing page at
https://my-site/
that should just be the latest build - I have versioned docs that should be “frozen” after they are built at
https://my-site/docs/v0.0.1
- these should ideally be built when a new git tag is pushed to GitHub and can only be updated manually - I need a redirect from special tags such as
https://my-site/docs/latest
to specific versions (e.g. the latest tagged version, or the latest build on main)
This doesn’t seem like an uncommon pattern but I’m struggling to understand how to get Netlify to do this for me. Specifically, I am not sure how to:
- Create “tagged” deploys on new GitHub git tags
- Proxy specific paths to specific deploys (e.g.
*/v0.0.1/*
) - Get a list of available “tagged deploys” (for display to my users)
- Proxy a specific path (e.g.
*/latest/*
to a given deploy
A platform such as ReadTheDocs provides this nicely like so, with a javascript-powered sidebar menu: