This repository stores the versioned ads API JSON data and automatically syncs it to the correct DigitalOcean Spaces path for staging and production.
src/ is the single source of truth for ads API data.
developmentsyncssrc/toads-api-data/staging/in the stage bucketmainsyncssrc/toads-api-data/production/in the prod bucket
push_on_stage.ymlruns on pushes todevelopmentpush_on_prod.ymlruns on pushes tomain
The workflows run:
aws s3 sync ./src/ s3://<bucket>/ads-api-data/<environment>/ --deleteThe sync excludes .DS_Store files and removes remote files that no longer exist in src/.