Skip to content

Commit 78b088e

Browse files
feat(nuget): ci pushes to nuget
1 parent 542611b commit 78b088e

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

appveyor.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,18 +42,18 @@ build:
4242

4343
after_build:
4444
- echo %GitVersion_NuGetVersion%
45-
# - cmd: nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
46-
# - cmd: appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
45+
- cmd: nuget pack src\IpfsApi.nuspec -version "%GitVersion_NuGetVersion%" -prop "target=%CONFIGURATION%"
46+
- cmd: appveyor PushArtifact "Ipfs.Api.%GitVersion_NuGetVersion%.nupkg"
4747

4848
after_test:
4949
# Generate coverage report
5050
- packages\OpenCover.4.6.210-rc\tools\OpenCover.Console.exe -register:user -filter:"+[Ipfs.Api*]* -[*Tests]*" -target:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe" -targetargs:"/testcontainer:test//bin/Release/Ipfs.Api.Tests.dll" -output:coverage.xml
5151
- if defined COVERALLS_REPO_TOKEN packages\coveralls.net.0.6.0\tools\csmacnz.coveralls.exe --opencover -i ./coverage.xml --serviceName appveyor --jobId %APPVEYOR_BUILD_NUMBER%
5252

5353
# publish NuGet package on tag build
54-
#deploy:
55-
#- provider: NuGet
56-
# api_key:
57-
# secure: OdmGEj/l0K0ZPDmXAYx+fryCzV012eTrM29ALBuL0waxvwLvrufdDXiI+1iNhWEG
58-
# on:
59-
# appveyor_repo_tag: true
54+
deploy:
55+
- provider: NuGet
56+
api_key:
57+
secure: OdmGEj/l0K0ZPDmXAYx+fryCzV012eTrM29ALBuL0waxvwLvrufdDXiI+1iNhWEG
58+
on:
59+
appveyor_repo_tag: true

src/IpfsApi.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@
7272
<Compile Include="Properties\AssemblyInfo.cs" />
7373
</ItemGroup>
7474
<ItemGroup>
75+
<None Include="IpfsApi.nuspec" />
7576
<None Include="packages.config" />
7677
</ItemGroup>
7778
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

src/IpfsApi.nuspec

3.05 KB
Binary file not shown.

0 commit comments

Comments
 (0)