-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxpipeline-template-base.yml
More file actions
43 lines (34 loc) · 1.28 KB
/
xpipeline-template-base.yml
File metadata and controls
43 lines (34 loc) · 1.28 KB
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
parameters:
- name: prePublishSteps
type: stepList
default: []
jobs:
- job: publish
steps:
- task: qetza.replacetokens.replacetokens-task.replacetokens@3
name: tokenizeModuleDefinition
displayName: Tokenize Module
inputs:
targetFiles: XConfigMaster.psd1
tokenPrefix: '$('
tokenSuffix: ')'
actionOnMissing: fail
verbosity: detailed
rootDirectory: $(ModulePath)
- powershell: |
$files = @()
copy "./tooling" "$(ModulePath)" -Recurse
copy "./system" "$(ModulePath)" -Recurse
workingDirectory: $(System.DefaultWorkingDirectory)
name: updateFileList
displayName: Update Module File List
- ${{ parameters.prePublishSteps }}
- powershell: Publish-Module -NuGetApiKey "$(NuGetApiKey)" -Repository PSGallery -Path $(ModulePath) -Force -Verbose
name: publishModule
displayName: Publishing Module
- powershell: |
$SummaryFilePath = "$(System.DefaultWorkingDirectory)/summary.md"
Write-Output "# Test Summary" > $SummaryFilePath
Write-Output "##vso[task.uploadsummary]$SummaryFilePath"
name: outputSummary
displayName: Show Summary