worldbank / DECAT_Space2Stats

https://worldbank.github.io/DECAT_Space2Stats/
Other
1 stars 2 forks source link

gh actions for gh-pages not working #90

Open andresfchamorro opened 10 hours ago

andresfchamorro commented 10 hours ago

Describe the bug The github actions workflow inherited from our template is not working. It is supposed to run once a branch is merged but it's failing due to a dependency issue with sphinx: https://github.com/worldbank/DECAT_Space2Stats/actions/runs/11775814066/job/32796972085

Potential fix: Add required package to docs/requirements.txt

Note: these are the dependencies to build the gh-pages site, not for the package/api.

Additionally, could we explore a way to automatically copy the stac from main into the gh-pages branch as part of this action / or a new action? That way we can feed it to radiant earth stac browser: https://radiantearth.github.io/stac-browser/#/external/worldbank.github.io/DECAT_Space2Stats/stac/catalog.json

Previously, I added it manually but it gets deleted with the current action setup.

Gabe-Levin commented 9 hours ago

We were able to pass the "Raw" json link from the github repo to radiant earth. The URL is an eye-soar but it works for now:

https://radiantearth.github.io/stac-browser/#/external/raw.githubusercontent.com/worldbank/DECAT_Space2Stats/refs/heads/feature/ntl-metadata/space2stats_api/src/space2stats_ingest/METADATA/stac/catalog.json

We will have to update the link to pull from main, once the ntl-metadata branch gets merged

andresfchamorro commented 8 hours ago

created a tinyurl: https://tinyurl.com/space2stats

bpstewar commented 8 hours ago

The error is being caused by a Sphinx dependancy that I added to the gh-pages _config.yml- it can be removed as it isn't working anyway.