Skip to content

Commit

Permalink
Made package publishing manual. (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
mgernand authored Dec 9, 2022
1 parent 2095140 commit d80bb32
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://dev.azure.com/fluxera/Foundation/_apis/build/status/GitHub/fluxera.Fluxera.Repository?branchName=main)](https://dev.azure.com/fluxera/Foundation/_build/latest?definitionId=66&branchName=main)
[![Build Status](https://dev.azure.com/fluxera/Foundation/_apis/build/status/GitHub/fluxera.Fluxera.Repository?branchName=main&stageName=BuildAndTest)](https://dev.azure.com/fluxera/Foundation/_build/latest?definitionId=88&branchName=main)

# Fluxera.Repository
A generic repository implementation.
Expand Down
10 changes: 7 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# CI pipeline for a NuGet package solution.

trigger:
branches:
include: [ '*' ]
Expand All @@ -9,6 +7,12 @@ variables:
BuildConfiguration: Release
DotNetCoreVersion: 6.0.x

parameters:
- name: publishPackages
displayName: "Publish NuGet packages"
type: boolean
default: false

stages:
- stage: BuildAndTest
jobs:
Expand Down Expand Up @@ -61,7 +65,7 @@ stages:
- stage: PublishPackages
dependsOn: BuildAndTest
# Only publish packages for main branch.
condition: and(succeeded('BuildAndTest'), eq(variables['Build.SourceBranch'], 'refs/heads/main'))
condition: and(succeeded('BuildAndTest'), eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(${{ parameters.publishPackages }}, true))
jobs:
- job: PublishPackages
pool:
Expand Down

0 comments on commit d80bb32

Please sign in to comment.