https://news.ycombinator.com/item?id=44362665
https://news.ycombinator.com/item?id=44362720
reply
185.199.108.153 185.199.109.153 185.199.110.153 185.199.111.153
which you already have. Your CNAME record at www.rami.wiki needs to point to "ramimac.github.io/wiki", and your CNAME file in the root of your repo needs to contain "www.rami.wiki" (www is necessary).
At this point, https://rami.wiki should automatically redirect to https://www.rami.wiki.
At least, that's more or less how mine is set up and it works for me :) I had the same issue as you until I got that all straightened out.