createRelease script
This commit is contained in:
Родитель
64462b3816
Коммит
468a5685ec
|
@ -121,4 +121,17 @@ jobs:
|
|||
inputs:
|
||||
PathtoPublish: '$(resultIpa)'
|
||||
ArtifactName: 'ios'
|
||||
publishLocation: 'Container'
|
||||
|
||||
- job: Release file
|
||||
steps:
|
||||
- task: ShellScript@2
|
||||
inputs:
|
||||
scriptPath: '$(rootPath)/createReleaseFile.sh'
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
displayName: "Publish Build Artifact"
|
||||
inputs:
|
||||
PathtoPublish: '$(rootPath)/CHANGELOG.md'
|
||||
ArtifactName: 'changelog'
|
||||
publishLocation: 'Container'
|
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
CURRENT_TAG=$(git tag -l --sort=-v:refname | sed -n 2p)
|
||||
echo "Current Tag: $CURRENT_TAG"
|
||||
|
||||
CHANGES=$(git log --pretty=format:"- %s" ...$CURRENT_TAG)
|
||||
|
||||
echo -e "**$BUILD_BUILDNUMBER**\n\n$CHANGES" > CHANGELOG.md
|
Загрузка…
Ссылка в новой задаче