Open anthonylavado opened 2 months ago
I've removed the conversion script from the build phase. It doesn't need to run every single time the page is updated.
To invoke it, from a local copy of the site, go the scripts directory and run python3 ./scripts/converter.py
. It'll go through the directories above and print progress to the console.
With some GitHub Actions work, we could make this script run on GitHub whenever there is a push to the source CSV files. Here's a reference link on setting that up: https://stackoverflow.com/questions/63822219/how-to-run-github-actions-workflow-only-if-the-pushed-files-are-in-a-specific-fo
Then if the update CSV workflow is triggered, a site re-build can be scheduled right after that.
Instead of having the script be a pre-build hook for the pages, because we are using GitHub Actions, we can just call Python directly.
We should enhance the script with the following: