Branch deploys are not automatically published to the production site. Only builds on the main production branch are automatically deployed to the production site. See Branches and deploys documentation for more.
Sorry, I might have not been clear enough on my explanation.
I understand the branch deploys concept (we’ve been using Netlify for a few years now). The issue was that, even after building a new deploy based on changes made to that branch, the Netlify URL would not show those changes.
Putting it simple, let’s say I changed the h1 on one page from ‘Hello’ to ‘Hello there’. We can see Netlify build deploying against that branch, just as normal, and having a success build in the end. However, if we would click on the “Permalink” of that build, or if we would go directly into that branch url (https://main--deputy.netlify.app), the h1 would still show as ‘Hello’ only.
We did manually trigger other deploys on top of that, using the deploy hooks, and the same thing would happen. Netlify builds the whole thing just normally, but in the end the changes are not there.
Funny enough, we merged the same changes into another branch (exact same codebase/configs/etc), and this time we COULD see the latest changes on both the permalink and the branch Netlify’s URL.
After hours of frustration, one of the builds finally/eventually updated these URLs. One thing that comes to mind is some sort of caching mechanism from Netlify’s url that didn’t work and didn’t cleared the cache of previous builds.
It has delayed our whole release plan. Could you please look into it?
this feels a bit like a configuration issue and/or an our of sync dependency, not so much a cache problem. i’d probably start by comparing the two branches in detail to try and figure out what part of the config/setup is not the same.
These are not issues. We have a plugin that does some checks on whether it should skip the build or not. Perfectly normal and aligned to what we have been using for over a year now.
Our issue is that code changes are not reflected in the deploy. Let’s say we added a new <h1>Test</h1> to our homepage and deployed that. Netlify will build it succesfully, but the <h1>Test</h1> would simply not be there in the deploy Permalink url (eg: https://62afb8ca95f78e0008c8a766--deputy.netlify.app) or Branch deploy url (eg: https://staging--deputy.netlify.app). It simply ignores any changes made and shows the outdated version instead (like the cache wasn’t cleared, or it’s simply pointing to the wrong (old) destination.
This has been a huge issue as we can’t trust the build would actually deploy our changes, and we have to constantly try to re-trigger it until it eventually “clears the cache” or triggers something else that works.
@coelmay the links are not that relevant, really. They can’t tell much of the story, it was more to illustrate the kind of urls I was referring to (permalink and branch deploy). The main issue is that the the changes do not show on new builds. Is this something someone else has experienced as well?
We have also noticed that the issue might be happening when we call the netlify build hooks, so this might be related.
Hey, I have exactly the same problem, in front of my url it is attaching main-- and url it is main–example.netlify.app unstead of example.netlify.app
It is auto deplyoing from main banch in github
I have made some styling fixes and push it about 30 mins ago
…and then confirm that a build of the same commit does or doesn’t build into the same files locally, once you’ve synced up all the versions locally with the versions we use: [Support Guide] Debugging Netlify site builds
If so, then we’ll be able to help debug what is being served! If not, then you’ll debug what is being built, instead
Hey fool, thanks for your help! It seems to have sorted itself out – new commits to testing deploy as they should. Maybe caches didn’t get invalidated or something. Thanks anyways!
Hi @js32 , sorry to hear about the continued trouble! Could you share what changes were made to style.min.css and how we can see if the changes were built/served?
OK, and you’ve tried my prior advice? Downloading the deploy in question, comparing it to your local build to confirm that things are identical in the output of the build, and debugging that problem if not?
That’s the debugging we need you to do before we can help you, still, just like last time you asked