-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathmain-pipeline.azure-pipelines.yml
36 lines (33 loc) · 1.09 KB
/
main-pipeline.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
# Docs: https://aka.ms/yaml
name: $(Build.DefinitionName)-$(Date:yyyyMMdd))
trigger:
- main
pool:
vmImage: 'windows-latest'
variables:
- group: MSPsUK KeyVault
stages:
- stage: Release
jobs:
- job: Release
steps:
- powershell: .\Bootstrap.ps1
displayName: 'Install pre-requisites'
- task: PowerShell@2
displayName: 'Build PowerShell Module'
inputs:
TargetType: filePath
PWSH: true
FilePath: '$(System.DefaultWorkingDirectory)\HaloAPI.build.ps1'
Arguments: '-CopyModuleFiles -Configuration Production'
env:
PSGalleryAPIKey: $(PSGalleryAPI)
- task: PowerShell@2
displayName: 'Publish PowerShell Module'
inputs:
TargetType: filePath
PWSH: true
FilePath: '$(System.DefaultWorkingDirectory)\HaloAPI.build.ps1'
Arguments: '-PublishModule -Configuration Production'
env:
PSGalleryAPIKey: $(PSGalleryAPI)