Do people really use GitHub artifacts for documentation?

Is there a practical solution for doing this locally? Or is the lack thereof why anyone would use GitHub Actions? It seems to me that running a script when committing locally would be a better idea than having to use runners, but I don't know how to do that yet.

I found this, which I think would also be a fine time to run the local "action", but I think after-commit still makes the most sense?