In case you’re interested, I got a similar solution working (building the static site with GitHub actions) and posted about it: