Purging Azure CDN With GitHub Actions

Originally published on Medium. When you use Azure CDN to deliver content, you may need to purge your endpoint so that changes you make are sent to your users, as files are cached in the Azure CDN until their time-to-live (TTL) expires. If you don’t set a TTL for your files, Azure automatically sets a TTL of 7 days. Even if you set a lower TTL, your updates may not coincide with the cache expiration....

January 1, 2020 · 3 min · 607 words · Lyndon Shi

Automating Deployment of a (Gatsby) Static Website on Azure Storage with GitHub Actions

Originally published on Medium. I host my own static website on Azure Storage, and I got tired of running a script to upload my content every time I made a change to my website. After some Googling, I discovered GitHub Actions, made public about a month ago, which lets users automate how they build, test, and deploy their projects. Interestingly, though I found great guides for automating static website deployment to Azure using GitLab and building and deploying Gatsby sites with GitHub Actions, there wasn’t one guide with everything I needed, and I had to cobble pieces together from different sources....

December 29, 2019 · 2 min · 411 words · Lyndon Shi