EarthFrequencies / earth-frequencies-data

Open data describing the radio frequency allocation for each region and country.
Other
1 stars 1 forks source link

Add support for Github Actions #4

Open jrmlhermitte opened 2 years ago

jrmlhermitte commented 2 years ago

(Moved from @ajmas here: https://github.com/ajmas/EarthFrequencies/issues/7)

Maintaining the use of CSV for easy submission, we should add support for GitHub Actions. The workflow would do the following, updating the gh-pages branch, for merges to master:

take the CSVs and generate JSON files that can be used the the Earth Frequencies Viewer or any other project include the CSVs in that branch too, such that for a given path a json or CSV could be used generate a file that includes the following information: generation date github hash I had considered bringing in the generated viewer from the Earth Frequencies Viewer project, but thinking we should simply have it in its own repo and point to the published gh-pages here, on the condition we don't have any CORS issues.

Quickstart guide: https://docs.github.com/en/actions/quickstart

jrmlhermitte commented 2 years ago

1 starts this by adding the converter.

The next step would be to add a github actions hook upon merge to main

jrmlhermitte commented 2 years ago

The current converter runs by calling:

./scripts.run_converter.sh

you will need to install python libraries (see here )

This will generate and save files in build/rest/...

What we need to do next is to create a github actions script that copies this data over to the githubpages repo