Speed up slow deployments to Umbraco Cloud

Calculating...

Quick tip

The past few days I've been deploying some small tweaks to this site and it has been a slow process. I make a change, I push it to staging and I need to wait 20 mins for Visual Studio to complete the push.

I looked in to why this was the case and the first thing is, Umbraco Cloud shouldn't be used as your source control, which I was doing.

I was making changes locally, then pushing directly up to my Staging site, I then had to wait 20 mins before I could do anything else with git.

To fix this, I now push my git changes to a private repo on Github and I use CI/CD workflow to push to Cloud. This frees up my GitKraken, git client, but I found it was still taking Github 20mins to complete a deployment.

The Fix

Amend your project file to have :

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>net10.0</TargetFramework>
    <ImplicitUsings>enable</ImplicitUsings>
    <Nullable>enable</Nullable>
    <CompressionEnabled>false</CompressionEnabled> <!-- Change this value to false -->
  </PropertyGroup>

I changed the CompressionEnabled value to false and my deployments went from 20mins to 6mins!

Screenshot showing deployment times reducing

So if you use Umbraco Cloud and are struggling with slow deployments, try this change and also, try and not push directly to Cloud