1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-12 21:38:38 +00:00
Artemis/ci/azure-pipelines-docfx.yml
SpoinkyNL 27e25f22ed Attempt to make DocFX work with .NET 5 in CI
Update azure-pipelines-docfx.yml for Azure Pipelines
2020-11-16 21:13:10 +01:00

70 lines
1.7 KiB
YAML

# .NET Desktop
# Build and run tests for .NET Desktop or Windows classic desktop solutions.
# Add steps that publish symbols, save build artifacts, and more:
# https://docs.microsoft.com/azure/devops/pipelines/apps/windows/dot-net
trigger:
- master
pr: none
pool:
vmImage: 'windows-latest'
variables:
artemisSolution: '**/Artemis.sln'
steps:
- checkout: self
path: s/Artemis
- task: UseDotNet@2
displayName: 'Install .Net 5 SDK'
inputs:
packageType: 'sdk'
version: '5.0.100'
- task: DownloadPipelineArtifact@2
inputs:
buildType: 'specific'
project: '882fdc71-c09c-4923-8ab0-2cd9fcf0656d'
definition: '3'
buildVersionToDownload: 'latest'
artifactName: 'RGB.NET development build'
targetPath: '$(Pipeline.Workspace)/s/RGB.NET/bin/netstandard2.0'
- task: DotNetCoreCLI@2
displayName: 'dotnet restore Artemis'
inputs:
command: 'restore'
projects: '$(artemisSolution)'
feedsToUse: 'config'
nugetConfigPath: '$(Pipeline.Workspace)/s/Artemis/src/NuGet.Config'
- task: DotNetCoreCLI@2
displayName: 'dotnet build Artemis'
inputs:
command: 'build'
projects: '$(artemisSolution)'
- task: PowerShell@2
displayName: "DockFX build"
inputs:
targetType: 'inline'
script: |
choco install docfx -y
docfx.exe .\docfx_project\docfx.json
workingDirectory: '$(Pipeline.Workspace)/s/Artemis/docfx'
- task: FtpUpload@2
displayName: "DockFX FTP upload"
inputs:
credentialsOption: 'inputs'
serverUrl: 'ftp://artemis-rgb.com'
username: 'devops'
password: '$(ftp_password)'
rootDirectory: '$(Pipeline.Workspace)/s/Artemis/docfx/docfx_project/_site'
filePatterns: '**'
remoteDirectory: '/httpdocs/docs'
clean: true
preservePaths: true
trustSSL: false