This directory contains GitHub Actions workflows for various automated tasks in the repository.
fetch-mongodb-data.ymlfetches GAUL boundaries/time series from MongoDB and writes static JSON intopublic/data.fetch-gcp-pds-data.ymlfetches latest versioned PDS files from Google Cloud Storage and writes static artifacts intopublic/data.
MongoDB workflow runs:
- Daily at midnight UTC
- On manual trigger (workflow_dispatch)
GCP PDS workflow runs:
- Daily at 00:15 UTC
- On manual trigger (workflow_dispatch)
To make workflows function correctly, add these repository secrets:
MONGODB_URI- MongoDB connection stringVITE_MAPBOX_TOKEN- Mapbox access token (app build/runtime)GCP_SA_KEY- Google Cloud service account JSONGCP_BUCKET_NAME- Google Cloud bucket nameGCP_PDS_GROUNDS_PREFIX- Optional grounds file prefix (default in script)GCP_PDS_EFFORT_PREFIX- Optional effort file prefix (default in script)GCP_PDS_FRAME_GEARS_PREFIX- Optional frame-gears prefix (default in script)
- 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:
Workflows produce/update these files:
/public/data/map_gaul1.json/public/data/map_gaul2.json/public/data/ts_gaul1.json/public/data/ts_gaul2.json/public/data/pds-fishing-grounds.geojson/public/data/pds-h3-effort-r9.json/public/data/frame-gears.json