-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
45 lines (44 loc) · 1.23 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
pool:
vmImage: 'windows-2019'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- task: PowerShell@2
displayName: Install MkDocs
inputs:
targetType: 'inline'
script: |
pip install mkdocs mkdocs-material mkdocs-minify-plugin mkdocs-img2fig-plugin --disable-pip-version-check
failOnStderr: true
workingDirectory: '$(Build.SourcesDirectory)'
- task: PowerShell@2
displayName: Build with MkDocs
inputs:
targetType: 'inline'
script: |
mkdocs build -q
failOnStderr: true
workingDirectory: '$(Build.SourcesDirectory)'
- task: ArchiveFiles@2
displayName: 'Create Zip archive'
inputs:
rootFolderOrFile: 'site'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/$(Build.BuildId).zip'
replaceExistingArchive: true
- task: CopyFiles@2
displayName: 'Copy Maintenance Page'
inputs:
Contents: 'nginx-maintenance.html'
TargetFolder: '$(Build.ArtifactStagingDirectory)'
OverWrite: true
- task: PublishBuildArtifacts@1
displayName: 'Publish Zip archive'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'