Skip to content

Commit

Permalink
Added Cloudfront cache invalidation post deploy as well as added Goog…
Browse files Browse the repository at this point in the history
…le analytics
  • Loading branch information
meetgaurang committed Sep 12, 2024
1 parent 23c5481 commit e955e88
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,6 @@ jobs:
- name: Sync files to S3 bucket
run: |
aws s3 cp src s3://${{vars.AWS_BUCKET_NAME}}/ --recursive
- name: Invalidate CloudFront cache
run: |
aws cloudfront create-invalidation --distribution-id ${{vars.AWS_CLOUDFRONT_ID}} --paths "/*"
27 changes: 26 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,36 @@
// Remove rocket bounce animation after certain time
setTimeout(() => {
document.getElementById("rocket-icon").classList.remove("fa-bounce");
}, 4000);
}, 3000);
</script>
<!-- Google Tag Manager -->
<script>
(function (w, d, s, l, i) {
w[l] = w[l] || [];
w[l].push({ "gtm.start": new Date().getTime(), event: "gtm.js" });
var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),
dl = l != "dataLayer" ? "&l=" + l : "";
j.async = true;
j.src = "https://www.googletagmanager.com/gtm.js?id=" + i + dl;
f.parentNode.insertBefore(j, f);
})(window, document, "script", "dataLayer", "GTM-WZBQ2WKJ");
</script>
<!-- End Google Tag Manager -->
</head>

<body class="bg-glowingblack-50 text-white">
<!-- Google Tag Manager (noscript) -->
<noscript>
<iframe
src="https://www.googletagmanager.com/ns.html?id=GTM-WZBQ2WKJ"
height="0"
width="0"
style="display: none; visibility: hidden"
>
</iframe>
</noscript>
<!-- End Google Tag Manager (noscript) -->
<!-- Header -->
<div class="p-4 h-[12vh]">
<div
Expand Down

0 comments on commit e955e88

Please sign in to comment.