<commit_before># sharmamohit.com-website

personal website hosted using AWS S3 at https://sharmamohit.com

###### Status: 
![Website Status](https://img.shields.io/website-up-down-green-red/https/sharmamohit.com.svg?style=flat)
![Website Uptime](https://img.shields.io/uptimerobot/ratio/m781993530-436682a6e42e6d3bc06223b8.svg?label=Uptime&logo=clockify&style=flat)
![Travis Status](https://img.shields.io/travis/Mohitsharma44/sharmamohit.com-website.svg?label=TravisCI&logo=travis&style=flat)

### Structure

The landing page on my website is a single index page in [`resume/index.html`](./resume)

The `/work/` slug is a portfolio website created using gohugo and Academic theme. 

### Building

The website is built and deployed automatically by TravisCI to AWS S3 bucket when a commit is pushed to the master branch. The script for travis primarily consists 
of building the hugo website to `public` directory, then copying the contents from `resume` to public and finally
pushing the public directory to S3 bucket.

### Cloudfront Invalidation

Any push / delete operation on the S3 bucket triggers the cloudfront invalidation for *all* the objects.

> Sure I don't need to invalidate all objects but hey, its so cheap..<commit_msg>moving from aws lambda function to triggering cache invalidation using aws-cli inside travis<commit_after># sharmamohit.com-website

personal website hosted using AWS S3 at https://sharmamohit.com

###### Status:
![Website Status](https://img.shields.io/website-up-down-green-red/https/sharmamohit.com.svg?style=flat)
![Website Uptime](https://img.shields.io/uptimerobot/ratio/m781993530-436682a6e42e6d3bc06223b8.svg?label=Uptime&logo=clockify&style=flat)
![Travis Status](https://img.shields.io/travis/Mohitsharma44/sharmamohit.com-website.svg?label=TravisCI&logo=travis&style=flat)

### Structure

The landing page on my website is a single index page in [`resume/index.html`](./resume)

The `/work/` slug is a portfolio website created using gohugo and Academic theme.

### Building

The website is built and deployed automatically by TravisCI to AWS S3 bucket when a commit is pushed to the master branch. The script for travis primarily consists
of building the hugo website to `public` directory, then copying the contents from `resume` to public and finally
pushing the public directory to S3 bucket.

### Cloudfront Invalidation

After the above deployment (upload to s3 bucket) travis will also initiate forced cloufront invalidation.

> Sure I don't need to invalidate all objects but hey, its so cheap..
{'fraction_non_alphanumeric': 0.09486475891807135, 'fraction_numerical': 0.025088200705605645, 'mean_word_length': 5.348258706467662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6138674', 'n_tokens_mistral': 832, 'n_tokens_neox': 778, 'n_words': 268}