-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from MisterJames/ftr/add_appveyor_push_to_nuget
Add nuget push on build
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
version: 1.4.{build}.0 | ||
branches: | ||
only: | ||
- master | ||
image: Visual Studio 2017 | ||
build_script: | ||
- cmd: >- | ||
echo %APPVEYOR_BUILD_VERSION% | ||
dotnet restore src/GenFu.sln | ||
dotnet build src\GenFu.sln /p:AssemblyVersion=%appveyor_build_version% /p:InformationalVersion=%appveyor_build_version% | ||
dotnet pack .\src\GenFu\GenFu.csproj --include-symbols /p:PackageVersion=%appveyor_build_version% /p:AssemblyVersion=%appveyor_build_version% /p:InformationalVersion=%appveyor_build_version% | ||
test_script: | ||
- ps: dotnet test tests\GenFu.Tests\GenFu.Tests.csproj | ||
artifacts: | ||
- path: '**\*.nupkg' | ||
deploy: | ||
provider: NuGet | ||
api_key: | ||
secure: qjbfJcH1Lyp3ENSjX53F09cBYmHpTmkXer1i5ZYa8AjJe4qktQCJT/A7/v3tNpm2 | ||
skip_symbols: false | ||
artifact: /.*\.nupkg/ |