accordproject / web-components

React Components for Accord Project
Apache License 2.0
117 stars 94 forks source link

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

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.

AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_S3_BUCKET Will need to add the following secrets to the repo.

AWS_CLOUDFRONT_DISTRIBUTION_ID : EHOZMSZP988SV 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/EHOZMSZP988SV/invalidations

The S3 Bucket URL for testing is: http://web-components.accordproject.org.s3-website-us-east-1.amazonaws.com/

The CloudFront Distro URL for testing is: https://d39ci3wc10irbe.cloudfront.net/