1
0
mirror of https://github.com/XFox111/GUTSchedule.git synced 2026-04-22 06:58:01 +03:00

Updated CI pipeline to automatically update application version, updated development workflow description in CONTRIBUTING.md

This commit is contained in:
Michael Gordeev
2020-02-04 02:14:47 +03:00
parent 07e2c7d348
commit 92646e4849
2 changed files with 38 additions and 24 deletions
+9
View File
@@ -29,6 +29,15 @@ steps:
failBuildLevelSelector: 'Error'
failBuildOnCodeIssues: false
- task: PowerShell@2
displayName: 'Update version number'
inputs:
targetType: 'inline'
script: |
(Get-Content AndroidManifest.xml -encoding UTF8 | Out-String) -replace '(?<=\bandroid:versionCode=")[^"]*', $(Build.BuildId) | set-content AndroidManifest.xml -encoding UTF8
(Get-Content AndroidManifest.xml -encoding UTF8 | Out-String) -replace '(?<=\bandroid:versionName=")[^"]*', $(Build.BuildNumber) | set-content AndroidManifest.xml -encoding UTF8
workingDirectory: '$(Build.SourcesDirectory)\GUT.Schedule\GUT.Schedule\Properties'
- task: XamarinAndroid@1
displayName: 'Build Solution (AppBundle)'
inputs: