Skip to content

Commit

Permalink
simplifying how pipeline gets version
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpowell committed Jun 9, 2020
1 parent 81a5031 commit 83a9834
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ stages:
artifact: $(packageArtifactName)

- script: |
pv=$(ls $(Pipeline.Workspace)/$(packageArtifactName)/*.nupkg | sed 's/.*\/dotnet-delice\.\([0-9\.]*\.[0-9\.]*\.[0-9\.]*\)\..*/\1/'g)
pv=$(cat $(Pipeline.Workspace)/$(packageArtifactName)/version.md)
echo "##vso[task.setvariable variable=packageVersion]$pv"
displayName: Get package version
Expand Down
3 changes: 3 additions & 0 deletions build.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ Target.create "Changelog" (fun _ ->
printfn "##vso[task.setvariable variable=packageVersion]%s" changelog.LatestEntry.AssemblyVersion

Templates.replaceInFiles ["@releaseNotes@", s] [ "./src/DotNetDelice/DotNetDelice.fsproj"; "./src/DotNetDelice.Licensing/DotNetDelice.Licensing.fsproj" ]

[|sprintf "%O" changelog.LatestEntry.NuGetVersion|]
|> File.append "./.nupkg/version.md"
)

Target.create "All" ignore
Expand Down

0 comments on commit 83a9834

Please sign in to comment.