Skip to content
Permalink
Browse files

build: add release job to Azure Pipelines

  • Loading branch information...
mhamilton723 committed Jul 30, 2019
1 parent e48f9cb commit 915d68334eaeac2ed2fa8022bb5b4b3a3dadb039
Showing with 85 additions and 0 deletions.
  1. +33 −0 .chglog/CHANGELOG.tpl.md
  2. +29 −0 .chglog/config.yml
  3. +23 −0 pipeline.yaml
@@ -0,0 +1,33 @@
{{ range .Versions }}
<a name="{{ .Tag.Name }}"></a>
# {{ if .Tag.Previous }}[{{ .Tag.Name }}]{{ else }}{{ .Tag.Name }}{{ end }}
{{ range .CommitGroups -}}
### {{ .Title }}
{{ range .Commits -}}
- {{ if .Scope }}**{{ .Scope }}:** {{ end }}{{ .Subject }}
{{ end }}
{{ end -}}

{{- if .NoteGroups -}}
{{ range .NoteGroups -}}
### {{ .Title }}
{{ range .Notes }}
{{ .Body }}
{{ end }}
{{ end -}}
{{ end -}}
{{ end -}}

{{- if .Versions }}
[Unreleased]: {{ .Info.RepositoryURL }}/compare/{{ $latest := index .Versions 0 }}{{ $latest.Tag.Name }}...HEAD
{{ range .Versions -}}
{{ if .Tag.Previous -}}
[{{ .Tag.Name }}]: {{ $.Info.RepositoryURL }}/compare/{{ .Tag.Previous.Name }}...{{ .Tag.Name }}
{{ end -}}
{{ end -}}

## Acknowledgements
We would like to acknowledge the developers and contributors, both internal and external who helped create this version of MMLSpark.\n

{{ end -}}

@@ -0,0 +1,29 @@
style: github
template: CHANGELOG.tpl.md
info:
title: CHANGELOG
repository_url: https://github.com/Azure/mmlspark
options:
commit_groups:
title_maps:
build: Build 🏭
chore: Maintenance 🔧
ci: Continuous Integration 💜
docs: Documentation 📘
feat: Features 🌈
fix: Bug Fixes 🐞
perf: Performance Improvements 🚀
refactor: Code Refactoring 💎
revert: Revert Change ◀️
security: Security Fix 🛡️
style: Code Style 🎶
test: Testing 💚
header:
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
pattern_maps:
- Type
- Scope
- Subject
notes:
keywords:
- BREAKING CHANGE
@@ -77,6 +77,29 @@ jobs:
failTaskOnFailedTests: true
condition: and(eq(variables.runTests, 'True'), succeededOrFailed())

- job: Release
pool:
vmImage: ubuntu-16.04
steps:
- bash: |
echo '##vso[task.setvariable variable=tag]'$(git tag -l --points-at HEAD)
displayName: 'Get Git Tag'
- bash: |
wget https://github.com/git-chglog/git-chglog/releases/download/0.8.0/git-chglog_linux_amd64
chmod +x git-chglog_linux_amd64
./git-chglog_linux_amd64 -o CHANGELOG.md $TAG
condition: startsWith(variables['tag'], 'v')
- task: GitHubRelease@0
condition: startsWith(variables['tag'], 'v')
inputs:
gitHubConnection: 'MMLSPark Github via PAT'
repositoryName: '$(Build.Repository.Name)'
action: 'create'
target: '$(Build.SourceVersion)'
tagSource: 'auto'
releaseNotesFile: 'CHANGELOG.md'
isDraft: true

- job: PythonTests
condition: eq(variables.runTests, 'True')
pool:

0 comments on commit 915d683

Please sign in to comment.
You can’t perform that action at this time.