News for hackers. Stuff that matters.
Re:Doing stupid stuff with GitHub Actions by gjulianm on Saturday July 25, 2020 @05:05PM (#23952416)
It's not often that I see things that are stupid but smart at the same time, so cool!
Re:Doing stupid stuff with GitHub Actions by buzzerbetrayed on Saturday July 25, 2020 @06:47PM (#23952983)
Genuine question: what is smart about this? What is the reasoning for not just writing the static assets by hand?
Re:Doing stupid stuff with GitHub Actions by simonw on Saturday July 25, 2020 @07:02PM (#23953060)
The site already existed, but they wanted to serve it statically to save on complexity and money.

If you dig into the repo you'll see that it's maintained using a YAML file, which is a smart way to deal with small sites that still contain structured content.

I do the same thing for my https://github.com/simonw/museums site.

Re:Doing stupid stuff with GitHub Actions by withinboredom on Saturday July 25, 2020 @06:53PM (#23953016)
Some possibilities come to mind:

1. because the people writing the content are not developers. 2. there’s dynamic content, but when you know you’re going to get a large influx of traffic from a single region/event, you can precompute it for a short period.

Re:Doing stupid stuff with GitHub Actions by gjulianm on Saturday July 25, 2020 @08:03PM (#23953312)
It's smart because it's a solution to a problem (freezing dynamic content) in one line of code, the wget command. It should work for most cases and it's easy to understand and deploy.