I was using a Pixel 2, but the list of well documented phones is available:
https://lineage.microg.org/
It's pretty simple if your phone is supported. You enable developer mode, enable USB debugging, download the image, and run a couple ADB commands. For me it was:
fastboot flashing unlock
fastboot update image.zip
And that was it.