Update pipeline for ssr

This commit is contained in:
2026-01-15 20:06:16 -06:00
parent 79dd554afa
commit c7cf706d6c

View File

@@ -13,23 +13,17 @@ variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
apiProjectName: 'Shogi'
uiProjectName: 'Shogi.UI'
projectName: 'Shogi'
steps:
- task: NuGetToolInstaller@1
- task: UseDotNet@2
inputs:
packageType: sdk
#useGlobalJson: true
version: 10.x
installationPath: $(Agent.ToolsDirectory)/dotnet #Install if not already present.
- task: CmdLine@2
inputs:
script: 'dotnet workload install wasm-tools'
packageType: sdk
version: 10.x
installationPath: $(Agent.ToolsDirectory)/dotnet
- task: NuGetCommand@2
inputs:
@@ -37,13 +31,7 @@ inputs:
- task: FileTransform@1
inputs:
folderPath: '$(System.DefaultWorkingDirectory)\$(uiProjectName)'
fileType: 'json'
targetFiles: 'wwwroot/appsettings.json'
- task: FileTransform@1
inputs:
folderPath: '$(System.DefaultWorkingDirectory)\$(apiProjectName)'
folderPath: '$(System.DefaultWorkingDirectory)\$(projectName)'
fileType: 'json'
targetFiles: 'appsettings.json'
@@ -51,25 +39,17 @@ inputs:
inputs:
command: 'publish'
publishWebProjects: false
arguments: '-c Release'
projects: '$(projectName)/$(projectName).csproj'
arguments: '-c Release -o $(Build.ArtifactStagingDirectory)'
zipAfterPublish: false
- task: CopyFilesOverSSH@0
displayName: "Copy API files."
displayName: "Copy application files"
inputs:
sshEndpoint: 'LucaServer'
sourceFolder: '$(System.DefaultWorkingDirectory)/$(apiProjectName)/bin/Release/net8.0/publish'
sourceFolder: '$(Build.ArtifactStagingDirectory)'
contents: '**'
targetFolder: '/var/www/apps/$(apiProjectName)'
readyTimeout: '20000'
- task: CopyFilesOverSSH@0
displayName: "Copy UI files."
inputs:
sshEndpoint: 'LucaServer'
sourceFolder: '$(System.DefaultWorkingDirectory)/$(uiProjectName)/bin/Release/net8.0/publish'
contents: '**'
targetFolder: '/var/www/apps/$(uiProjectName)'
targetFolder: '/var/www/apps/$(projectName)'
readyTimeout: '20000'
- task: SSH@0