Skip to content

Commit a07b12e

Browse files
committed
Update build to only deploy on Tags
1 parent 15f20d5 commit a07b12e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

appveyor.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ before_build:
1414

1515
build_script:
1616
- ps: Test-ModuleManifest -Path .\PSF.psd1 -Verbose -ErrorAction Stop
17-
- ps: |
17+
- ps: |
1818
$DestPath = "C:\Users\appveyor\Documents\WindowsPowerShell\Modules\PSF\"
1919
New-Item -Path $DestPath -Type Directory -Force
2020
Copy-Item .\PSF.ps* $DestPath
@@ -24,10 +24,10 @@ after_build:
2424

2525
deploy_script:
2626
- ps: |
27-
if($env:APPVEYOR_REPO_BRANCH -eq 'master'){
27+
if($env:APPVEYOR_REPO_BRANCH -eq 'master' -and $env:APPVEYOR_REPO_TAG){
2828
Publish-Module -Name PSF -NuGetApiKey "$env:APIKey" -Verbose -Force
29-
} else {
30-
Write-Warning "Not publishing module as we are on branch '$env:APPVEYOR_REPO_BRANCH'."
29+
} else {
30+
Write-Warning "Not publishing module as we are not on master branch, or not building a tag.`nBranch = '$env:APPVEYOR_REPO_BRANCH'`nTag = '$env:APPVEYOR_REPO_TAG'"
3131
}
3232
3333
artifacts:

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy