This directory contains GitHub Actions workflows for various automated tasks in the repository.
The fetch-mongodb-data.yml workflow fetches data from MongoDB and stores it as static JSON files in the public/data directory.
The workflow runs:
- Daily at midnight UTC
- On manual trigger (workflow_dispatch)
To make this workflow function correctly, you need to add the following secrets to your GitHub repository:
MONGODB_URI- The MongoDB connection stringVITE_MAPBOX_TOKEN- Your Mapbox access token
- Go to your GitHub repository
- Click on "Settings"
- In the left sidebar, click on "Secrets and variables" > "Actions"
- Click on "New repository secret"
- Add each secret with its name and value
- Name:
MONGODB_URI - Value: Your MongoDB connection string (from your local .env file)
- Name:
VITE_MAPBOX_TOKEN - Value: Your Mapbox access token (from your local .env file)
- Name:
The workflow produces the following files:
/public/data/pds_grids.json/public/data/wio_summaries_geo.json