Skip to content

Commit

Permalink
Fixing the GitHub release part.
Browse files Browse the repository at this point in the history
We needed to reset the Package_Version in the production stage.
  • Loading branch information
DarqueWarrior committed Feb 25, 2020
1 parent 10dfde5 commit edd6d6e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ stages:
displayName: 'Install NuGet 5.2.0'
inputs:
versionSpec: 5.2.0

- task: PowerShell@2
displayName: 'Install Module Dependencies'
inputs:
Expand Down Expand Up @@ -192,7 +192,7 @@ stages:
displayName: Testing stage
dependsOn: Package
jobs:

- template: build/integrationTests.yml
parameters:
displayName: 'Linux TFS 2017'
Expand Down Expand Up @@ -279,6 +279,11 @@ stages:
script: |
Install-Module -Name Trackyon.Nuget -Scope CurrentUser -Force -Verbose
ConvertTo-NuSpec -Path ./$(Folder)/VSTeam.psd1
# Load the psd1 file so you can read the version
$manifest = Import-PowerShellDataFile ./$(Folder)/VSTeam.psd1
Write-Host "##vso[task.setvariable variable=PACKAGE_VERSION;isOutput=false]$($manifest.ModuleVersion)"
workingDirectory: '$(Pipeline.Workspace)/Module'

- task: NuGetCommand@2
Expand All @@ -295,14 +300,14 @@ stages:
packagesToPush: '$(Pipeline.Workspace)/Module/$(Folder)/*.nupkg'
nuGetFeedType: external
publishFeedCredentials: 'PowerShell Gallery'
- task: GithubRelease@0
displayName: 'Create GitHub Release'

- task: GithubRelease@0
displayName: 'Create GitHub Release'
inputs:
gitHubConnection: Darquewarrior
repositoryName: DarqueWarrior/vsteam
tagSource: manual
tag: v$(PACKAGE_VERSION)
tag: v$(PACKAGE_VERSION)
addChangeLog: true
compareWith: 'lastFullRelease'
assets: |
Expand Down

0 comments on commit edd6d6e

Please sign in to comment.