Archive links for custom post types

How do you display a list of archive(last 6 months or so) for custom post types?
Something like this: https://blog.evolveformazione.com/