-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
90 lines (88 loc) · 2.7 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
pool:
vmImage: 'windows-2022'
variables:
- group: 'github-config'
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.x'
addToPath: true
architecture: 'x64'
- task: PowerShell@2
displayName: 'Git configuration'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
git config user.name ci-bot
git config user.email [email protected]
pwsh: true
- task: PowerShell@2
displayName: Install MkDocs + Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
pip install mkdocs mkdocs-material mkdocs-awesome-pages-plugin mkdocs-minify-plugin mike --disable-pip-version-check
failOnStderr: true
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)'
- task: PowerShell@2
displayName: Build v7 with Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
mike deploy v7
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/v7'
- task: PowerShell@2
displayName: Build v8 with Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
mike deploy v8
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/v8'
- task: PowerShell@2
displayName: Build v9 with Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
mike deploy v9
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/v9'
- task: PowerShell@2
displayName: Build v10 with Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
mike deploy v10
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/v10'
- task: PowerShell@2
displayName: Build v11 with Mike
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
mike deploy v11 latest
pwsh: true
workingDirectory: '$(Build.SourcesDirectory)/v11'
- task: PowerShell@2
displayName: 'Push to GitHub'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
inputs:
targetType: 'inline'
script: |
git remote add github https://$(PAT)@github.com/stuebersystems/sql.magellan.de.git
git fetch github
git checkout .
git push github HEAD:main
git push --tags github HEAD:main
git checkout gh-pages
git push github HEAD:gh-pages -f
pwsh: true