Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 2901dae

Browse files
committed
Only push new nuget packages from release branches
1 parent eeb7646 commit 2901dae

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

appveyor.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ deploy:
2626
api_key:
2727
secure: 7MS5+XWaFchMXFqzgneQCqo9U0DlxiPXe/KWWUnbCBDEizVn06EjdQZkWu1gbNOJ
2828
on:
29-
# we only deploy to public NuGet gallery when tagging the repo
30-
appveyor_repo_tag: true
29+
branch: /v\d+\.\d+\.\d+/
3130

3231
nuget:
3332
project_feed: true

build.proj

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<CommonBuildProperties>WarningLevel=0;NoWarn=1591;Out=$(Out);Configuration=$(Configuration);RunCodeAnalysis=$(RunCodeAnalysis);PackageOutputPath=$(Out)</CommonBuildProperties>
2020
<DefaultImportance Condition=" '$(DefaultImportance)' == '' ">high</DefaultImportance>
2121
<PS>%WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe</PS>
22-
<GitInfoReportImportance>high</GitInfoReportImportance>
2322
</PropertyGroup>
2423

2524
<ItemGroup>
@@ -160,9 +159,14 @@
160159
<!-- For now this is an informative version #, used to update CI -->
161160
<Message Text="Building version $(PackageVersion)" Importance="high" />
162161

162+
<PropertyGroup>
163+
<GitInfoReportImportance>high</GitInfoReportImportance>
164+
</PropertyGroup>
165+
163166
<!-- Update AppVeyor build # to match the actual one being used -->
164-
<Exec Command="appveyor UpdateBuild -Version $(PackageVersion)" Condition=" '$(APPVEYOR)' == 'true' "
165-
ConsoleToMSBuild="true"
166-
ContinueOnError="WarnAndContinue" />
167+
<Exec Command="appveyor UpdateBuild -Version $(PackageVersion)"
168+
Condition=" '$(APPVEYOR)' == 'true' "
169+
ConsoleToMSBuild="true"
170+
ContinueOnError="WarnAndContinue" />
167171
</Target>
168172
</Project>

0 commit comments

Comments
 (0)