Adds a GitHub actions workflow for auto deployment on push to branches
develop -> deploys to staging.earth.gov/mobile-climate-mapper
main -> deploys to earth.gov/mobile-climate-mapper
Updates vite config + video path to support deployment in a subfolder
I've also added staging and production environments in the repository with all the required secrets and variables, so it should work smoothly.
The cloudfront setup is manual. I've created a behavior for /mobile-climate-mapper* which is routed to the s3 bucket. if we need to update the subpath, we'll need to update the SUBPATH env var in the GitHub environments to the new subpath and manually update the cloudfront behavior to the new subpath.
I've also setup the production cloudfront with the same subpath already and also secured it with username/password (it's in slack) for now.
Changes
I've also added
staging
andproduction
environments in the repository with all the required secrets and variables, so it should work smoothly.The cloudfront setup is manual. I've created a behavior for
/mobile-climate-mapper*
which is routed to the s3 bucket. if we need to update the subpath, we'll need to update the SUBPATH env var in the GitHub environments to the new subpath and manually update the cloudfront behavior to the new subpath.I've also setup the production cloudfront with the same subpath already and also secured it with username/password (it's in slack) for now.