forked from GreyHatBeard/m365-etiquette
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
43 lines (38 loc) · 1007 Bytes
/
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
pool:
name: Azure Pipelines
steps:
- task: UsePythonVersion@0
displayName: 'Use Python 3.6'
inputs:
versionSpec: 3.6
- script: 'pip install mkdocs'
displayName: 'Install MKDocs'
- script: 'mkdocs build'
displayName: 'Build MKDocs'
- script: |
git config --global user.name "kevmcdonk"
git config --global user.email "[email protected]"
mkdir gh-pages
echo 'List root directory'
dir
cd gh-pages
echo 'List gh-pages directory'
dir
git clone --single-branch --branch gh-pages https://[email protected]/GreyHatBeard/m365-etiquette
echo 'List gh-pages after pull'
dir
cd ..
echo 'List root directory'
dir
cp -R site/* gh-pages/m365-etiquette
cd gh-pages/m365-etiquette
echo 'List gh-pages after copy'
dir
git add --all
git commit --message 'Adding and updating files'
git push
dir
displayName: 'Command Line Script'
- script: 'mkdocs gh-deploy'
displayName: 'Deploy MKDocs'
enabled: false