This commit is contained in:
2023-02-04 18:04:38 -06:00

View File

@@ -23,7 +23,10 @@ steps:
- task: UseDotNet@2 - task: UseDotNet@2
inputs: inputs:
packageType: 'sdk' packageType: 'sdk'
useGlobalJson: true #useGlobalJson: true
version: 7.x
includePreviewVersions: true
installationPath: $(Agent.ToolsDirectory)/dotnet #Install if not already present.
- task: CmdLine@2 - task: CmdLine@2
inputs: inputs:
@@ -50,7 +53,7 @@ steps:
displayName: "Copy API files." displayName: "Copy API files."
inputs: inputs:
sshEndpoint: 'LucaServer' sshEndpoint: 'LucaServer'
sourceFolder: '$(System.DefaultWorkingDirectory)/$(apiProjectName)/bin/Release/net6.0/publish' sourceFolder: '$(System.DefaultWorkingDirectory)/$(apiProjectName)/bin/Release/net7.0/publish'
contents: '**' contents: '**'
targetFolder: '/var/www/apps/$(apiProjectName)' targetFolder: '/var/www/apps/$(apiProjectName)'
readyTimeout: '20000' readyTimeout: '20000'
@@ -59,7 +62,7 @@ steps:
displayName: "Copy UI files." displayName: "Copy UI files."
inputs: inputs:
sshEndpoint: 'LucaServer' sshEndpoint: 'LucaServer'
sourceFolder: '$(System.DefaultWorkingDirectory)/$(uiProjectName)/bin/Release/net6.0/publish' sourceFolder: '$(System.DefaultWorkingDirectory)/$(uiProjectName)/bin/Release/net7.0/publish'
contents: '**' contents: '**'
targetFolder: '/var/www/apps/$(uiProjectName)' targetFolder: '/var/www/apps/$(uiProjectName)'
readyTimeout: '20000' readyTimeout: '20000'