From e423e1906ccc00f72cb489768de433aec2dd3927 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Tue, 19 Apr 2022 22:37:45 -0500 Subject: [PATCH] move bundle step after publish --- DeploymentFiles/deployment-pipeline.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/DeploymentFiles/deployment-pipeline.yml b/DeploymentFiles/deployment-pipeline.yml index f144aeca..0ccab5bf 100644 --- a/DeploymentFiles/deployment-pipeline.yml +++ b/DeploymentFiles/deployment-pipeline.yml @@ -65,6 +65,19 @@ steps: platform: '$(buildPlatform)' configuration: '$(buildConfiguration)' + +- task: DotNetCoreCLI@2 + displayName: 'Publish projects' + inputs: + command: 'publish' + publishWebProjects: false + projects: | + **/WebfrontCore.csproj + **/Application.csproj + arguments: '-c $(buildConfiguration) -o $(outputFolder) /p:Version=$(Build.BuildNumber)' + zipAfterPublish: false + modifyOutputPath: false + - task: PowerShell@2 displayName: 'Bundle JS Files' inputs: @@ -79,18 +92,6 @@ steps: $(Build.Repository.LocalPath)\dotnet-bundle.exe $(Build.Repository.LocalPath)\WebfrontCore\bundleconfig.json failOnStderr: true workingDirectory: '$(Build.Repository.LocalPath)\WebfrontCore' - -- task: DotNetCoreCLI@2 - displayName: 'Publish projects' - inputs: - command: 'publish' - publishWebProjects: false - projects: | - **/WebfrontCore.csproj - **/Application.csproj - arguments: '-c $(buildConfiguration) -o $(outputFolder) /p:Version=$(Build.BuildNumber)' - zipAfterPublish: false - modifyOutputPath: false - task: PowerShell@2 displayName: 'Run publish script 1'