-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
azure-release.yml
44 lines (43 loc) · 1.1 KB
/
azure-release.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
trigger:
branches:
include:
- release/*
pr: none
jobs:
- job: build_artifacts
displayName: Agent phase
cancelTimeoutInMinutes: 1
pool:
vmImage: windows-2019
steps:
- checkout: self
clean: true
persistCredentials: True
- task: PowerShell@2
displayName: Prepare build
inputs:
filePath: .\build\build_prep.ps1
- task: PowerShell@2
displayName: Build libraries
inputs:
filePath: .\build\build.ps1
arguments: -Script .\build.cake
- task: PowerShell@2
displayName: Copy libraries
inputs:
filePath: .\build\copy_build_files.ps1
- task: PowerShell@2
displayName: Create folder and move files to it
inputs:
targetType: inline
script: |
New-Item dbops -Type Directory
Get-Item bin, functions, internal, *.ps*1, license.txt | Foreach-Object { Move-Item $_ .\dbops }
Write-Host "##vso[build.addbuildtag]Release"
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: dbops'
env:
MY_ACCESS_TOKEN: $(System.AccessToken)
inputs:
PathtoPublish: .\dbops
ArtifactName: dbops