Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
add tag based condition for psgallery publishing (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtisanByteCrafter committed Dec 13, 2019
1 parent 64b24ba commit 1b42228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
# YAML spec:
# https://aka.ms/yaml

pool:
vmImage: windows-latest

trigger:
branches:
include:
- master
tags:
include:
- '*'

pr:
- master
Expand Down Expand Up @@ -50,6 +56,7 @@ steps:

- task: PowerShell@2
displayName: 'Deploy to PSGallery'
condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
inputs:
targetType: filePath
filePath: ./Build/build.ps1
Expand Down

0 comments on commit 1b42228

Please sign in to comment.