forked from roatis/AZ-104JA-MicrosoftAzureAdministrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
_build.yml
36 lines (36 loc) · 1.23 KB
/
_build.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
name: '$(Date:yyyyMMdd)$(Rev:.rr)'
jobs:
- job: build_markdown_content
displayName: 'Build Markdown Content'
workspace:
clean: all
pool:
vmImage: 'Ubuntu 16.04'
container:
image: 'microsoftlearning/markdown-build:latest'
steps:
- task: Bash@3
displayName: 'Build Content'
inputs:
targetType: inline
script: |
cp /{attribution.md,template.docx,package.json,package.js} .
npm install
node package.js --version $(Build.BuildNumber)
- task: GitHubRelease@0
displayName: 'Create GitHub Release'
inputs:
gitHubConnection: 'github-microsoftlearning-organization'
repositoryName: '$(Build.Repository.Name)'
tagSource: manual
tag: 'v$(Build.BuildNumber)'
title: 'Version $(Build.BuildNumber)'
releaseNotesSource: input
releaseNotes: '# Version $(Build.BuildNumber) Release'
assets: '$(Build.SourcesDirectory)/out/*.zip'
assetUploadMode: replace
- task: PublishBuildArtifacts@1
displayName: 'Publish Output Files'
inputs:
pathtoPublish: '$(Build.SourcesDirectory)/out/'
artifactName: 'Lab Files'