Not sure if the below is a reasonable approach so would appreciate a sense check, or anybody willing to share their journey?
git repo
where the umbraco and wwwroot\umbraco and app_plugins\[package] folders from nuget packages aren't included in the repo. (as we expect our build/deploy script to restore immutable content files and assemblies)
we need to duplicate those processes otherwise the umbracofolder doesn't make it into the publish folder
it seems like I'm restoring 3 times and building twice? But I'm guessing the build step is what gets the umbraco folder available for publish... even though publish implicitly builds?
Also, we have to implicitly add files and folders that I sort of expected to automatically publish?
I think also pre deployment we need a powershell script to empty the usync folder as deploying the published content won't delete items removed from the repo.
v9-r002 Continuous Deployment (GitRepo - Git Actions Workflow - Azure App service)
Not sure if the below is a reasonable approach so would appreciate a sense check, or anybody willing to share their journey?
git repo
where the
umbraco
andwwwroot\umbraco
andapp_plugins\[package]
folders from nuget packages aren't included in the repo. (as we expect our build/deploy script to restore immutable content files and assemblies)git actions
So even though
dotnet publish
implicitlyrestores
andbuilds
and
dotnet build
implicitlyrestores
we need to duplicate those processes otherwise the
umbraco
folder doesn't make it into the publish folderit seems like I'm restoring 3 times and building twice? But I'm guessing the build step is what gets the umbraco folder available for publish... even though publish implicitly builds?
Also, we have to implicitly add files and folders that I sort of expected to automatically publish?
.csproj
so that these required items also make it to the publish folder
Next on the list is to also add
I think also
pre deployment
we need apowershell script
to empty theusync
folder as deploying the published content won't delete items removed from the repo.ultimately hitting up the kuduApi
and potentially a
post deploy
powershell script
to tidy anything up...So wondering if that's what others are finding? Or maybe a there's a better approach
is working on a reply...