-
Notifications
You must be signed in to change notification settings - Fork 1
/
docs-pipelines.yml
40 lines (36 loc) · 1.09 KB
/
docs-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
# Starter pipeline
# Start with a minimal pipeline that you can customize to build and deploy your code.
# Add steps that build, run tests, deploy, and more:
# https://aka.ms/yaml
trigger:
- main
pool:
vmImage: ubuntu-latest
strategy:
matrix:
Python39:
python.version: '3.9'
steps:
- script: echo Hello, world!
displayName: 'Run a one-line script'
- checkout: self
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
sudo apt install pandoc
python -m pip install --upgrade pip
pip install -r $(Build.SourcesDirectory)/docs/requirements.txt
displayName: 'Install dependencies'
- script: |
cd $(Build.SourcesDirectory)/docs/ && make clean && make html
displayName: 'Docs Build'
- task: AzureStaticWebApp@0
inputs:
app_location: 'docs/'
app_build_command: 'ls && pip install -r requirements.txt && make html'
output_location: '_build/html/'
verbose: true
skip_api_build: true
azure_static_web_apps_api_token: $(DEPLOYMENT_TOKEN)