accordproject / techdocs

Accord Project Documentation
Apache License 2.0
61 stars 134 forks source link

chore(github) - add action to deploy to AWS S3 #402

Closed martinhalford closed 2 years ago

martinhalford commented 2 years ago

Creates an GitHub "Action" to build and deploy to AWS S3.

Requires the following "SECRETS" to be specified in GitHub.

martinhalford commented 2 years ago

@mttrbrts @jeromesimeon

I added extra commit to add logic to invalidate CloudFront distribution.

We will need to add the following secrets to the repo.

AWS_CLOUDFRONT_DISTRIBUTION_ID : ENZKBANCEVDP6
AWS_REGION : us-east-1

The invalidation is created after each deployment to S3 and can be seen here: https://console.aws.amazon.com/cloudfront/v3/home?region=us-east-1#/distributions/ENZKBANCEVDP6/invalidations