I’m working on a project hosted on GitHub and using a build pipeline with GitHub Actions. While the build pipeline executes successfully, the changes I make to my index.html file aren’t reflected on my live website. Here’s a breakdown of what I’m experiencing:
- Build Pipeline: My build pipeline seems to be working correctly. It fetches code from the repository, builds it (if necessary), and presumably completes all defined steps.
- Code Changes: I’ve confirmed that the changes I make to my index.html file are committed and pushed to the GitHub repository successfully.
- Website Not Updated: However, when I visit my live website, the changes to index.html are not reflected. It still displays the old version of the file.
I’d like to understand why the changes to index.html aren’t reflected on my live website and how to ensure the build pipeline successfully deploys the updated code. Any guidance or suggestions would be greatly appreciated!
I’ve already tried clearing my browser cache and redeploying the website, but the changes still aren’t reflected.
Environment:
Deployment Setup: I’m using Azure CDN and my custom domain for website deployment.
Build Pipeline: I’m using the following actions in my workflow YAML file:
actions/checkout@v4 (as suggested by the warning)
azure/login@v2 (as suggested by the warning)
Workflow Configuration: I copied the workflow configuration from the official Microsoft documentation: Link
- I’ve added my Azure credentials as secrets in the GitHub repository, but I’m unsure if they’re being used correctly by the azure/login@v2 action.
- I’m following the Microsoft documentation for deploying a static site to GitHub Pages using Azure Storage Blobs, but the azure/login@v2 action seems unnecessary for this setup.