Skip to content

Commit 3b3e089

Browse files
committed
appveyor is dumb?
1 parent 970658e commit 3b3e089

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

appveyor.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@ after_build:
2525
Push-AppveyorArtifact "CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\CodeStats.dll" -FileName CodeStats_$($env:PLATFORM).dll
2626
}
2727
28-
$ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORM)_$($env:CONFIGURATION).zip"
29-
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.exp
30-
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.lib
31-
7z a $ZipFileName CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*
28+
if ($($env:APPVEYOR_REPO_TAG) -eq "true") {
29+
$ZipFileName = "notepadpp-CodeStats_$($env:APPVEYOR_REPO_TAG_NAME)_$($env:PLATFORM)_$($env:CONFIGURATION).zip"
30+
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.exp
31+
Remove-Item CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*.lib
32+
7z a $ZipFileName CodeStats\bin\$env:PLATFORM\$env:CONFIGURATION\*
33+
}
3234
3335
artifacts:
3436
- path: notepadpp-CodeStats_*.zip

0 commit comments

Comments
 (0)