Skip to content

Commit

Permalink
Add version bumping to the deployment stage
Browse files Browse the repository at this point in the history
Test version bumping on deploy on the dev branch and enable deployment to test feed only for master if everything is working.
  • Loading branch information
jooni91 committed Feb 23, 2020
1 parent e0d087b commit d802f34
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions azure-pipelines.yml
Expand Up @@ -78,7 +78,7 @@ jobs:
dependsOn:
- BuildPack
- Test
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/dev'))
environment: Development
strategy:
runOnce:
Expand All @@ -93,4 +93,16 @@ jobs:
packagesToPush: '$(Pipeline.Workspace)/**/*.nupkg;!$(Pipeline.Workspace)/**/*.symbols.nupkg'
nuGetFeedType: 'internal'
publishVstsFeed: '664acd3b-eaa2-47d0-a9a4-09c7e2741d7d'
allowPackageConflicts: true
allowPackageConflicts: true

- task: DownloadFile@1
displayName: 'Download version bump script'
inputs:
FileUrl: 'https://gist.githubusercontent.com/jooni91/542239cd82a7087cc6ae45fdb2dba12d/raw/b8825640040beab059a3331c15b6a509ec869bd2/update-version-code-script.ps1'

- task: PowerShell@2
displayName: 'PowerShell Script'
inputs:
targetType: filePath
filePath: './update-version-code-script.ps1'
arguments: '$(System.AccessToken)'

0 comments on commit d802f34

Please sign in to comment.