What are my best options for hosting a static site on Australian servers?
Previously I was using a normal web hosting service but they don't work very well with static site generators and are usually overpriced for what I want.
Ideally I'd like a service like Cloudflare pages or GitHub pages, etc., i.e. there is good integration with git as my site is generated using Hugo.
Hmm, I'm not sure what law that is or what specific content you're referring to, but it seems fairly counterintuitive. There's a lot of content both featuring and targeted at children (including Australian children) on Facebook, YouTube, and other non-Australian websites.
Run my own email server - on same box. I don't know much about email reputation, just know enough and lucky enough to not get my email delivered to spam folder at google mail. Given the AU$ was so weak it became cheaper to host in Au. Excluding the really cheap stuff - i.e. US$2 a month. Not concerned with server monitoring; Azure goes down more often than the cheap crap I use.
Do you need SSH access to generate the site files on the server? Or just a method of uploading your site files after generating them locally?
Cheap shared hosts are a pain with SSH access, most will do it with a support ticket but often time limited or through an IP whitelist. A cheap VPS is really the only reliable option here.
I used to generate locally and then delete everything and then upload on the old host, which took way too long with my shitty internet connection so I moved to CloudFlare pages but would rather host in Australia - I guess if I want to automate things I could go with a VPS
Cheapest VPS I'm using in Aus so far is BinaryLane. $4.13/mon ($50/year). Seems OK, has dedicated IPV4 (yes you can get VPS behind CGnat4 + IPV6), IPV6 works after a bit of finangling. No backups. I only put it under low stress though.
Robtec does OK shared hosting (notably they offer an alternative to Cpanel) and was happy to permanently whitelist my home IP for SSH access. Quantumcore used to do this on request too but now it's only temporary, I have to keep contacting them every 6 months or so.
then delete everything and then upload on the old host
It's really annoying that good file transfer protocols (like rsync) also tend to require ssh access :| I wish shared hosts were a little less garbage sometimes, but I guess they have to deal with too many abusive customers for that to be cheap.
If you are worried about data sovereignty, I'm not aware of any services that are based in Australia but aren't US or EU owned
If you are more concerned about latency/TTFB, CloudFlare has several POPs in Australia so pages should be just as fast as anywhere else
If you are willing to roll your own with AWS, you could set up a GitHub actions job to upload to an S3 bucket (which you can locate in ap-southeast) then serve it out of Cloudfront (AWSs edge cache service). Unless you are doing a ton of traffic it'd probably be within the free tier limit as well
If you only care about australia based for latency reasons give netlify a look.
Super easy to hook up to your git repo and will probably even detect Hugo and configure stuff automatically
Have been really happy with it hosting a couple mostly static websites I've done
Binary Lane $3.75/month for a small but full access VPS. Been using them for a year or so for self-hosting and commercial workloads, no drama. They expect you to know what you're doing - it's just a Linux VPS with an IP address , the same as DigitalOcean Droplet, Linode etc.