Skip to content

Commit

Permalink
Updated packages and added package publish to pipeline. (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgernand authored May 5, 2022
1 parent b4081af commit 7d69026
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
32 changes: 30 additions & 2 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,33 @@ stages:
displayName: 'Publish Package Artifacts'
inputs:
PathtoPublish: '$(Build.ArtifactStagingDirectory)'
ArtifactName: 'drop'
publishLocation: 'Container'
ArtifactName: 'packages'
publishLocation: 'Container'

- stage: PublishPackages
dependsOn: BuildAndTest
# Only publish packages for main branch.
condition: and(succeeded('BuildAndTest'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
jobs:
- job: PublishPackages
pool:
name: Default
steps:
# Download the created packages.
- task: DownloadBuildArtifacts@0
displayName: 'Download NuGet Packges'
inputs:
buildType: 'current'
downloadType: 'single'
artifactName: 'packages'
downloadPath: '$(System.ArtifactsDirectory)'
# Publish the NuGet packages to the package feed.
- task: DotNetCoreCLI@2
displayName: Push Nuget Package
inputs:
command: custom
custom: nuget
arguments: >
push $(System.ArtifactsDirectory)/**/*.nupkg
-s https://api.nuget.org/v3/index.json
-k $(NuGetApiKey)
2 changes: 1 addition & 1 deletion src/Fluxera.Entity/Fluxera.Entity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Fluxera.Guards" Version="6.0.13" />
<PackageReference Include="Fluxera.Guards" Version="6.0.22" />
<PackageReference Include="GitVersion.MsBuild" Version="5.10.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
Expand Down

0 comments on commit 7d69026

Please sign in to comment.