diff --git a/deploy.sh b/deploy.sh index 566ff89..5eb6b20 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,13 +1,15 @@ +#!/usr/bin/env bash + ApiKey=$1 Source=$2 BuildNumber=$3 echo $BuildNumber -if [[ $TRAVIS_OS_NAME == 'linux' ]]; then +if [ $TRAVIS_OS_NAME == 'linux' ]; then -(cd ./src/Nancy.Serialization.Hyperion && exec dotnet pack -c Release /p:TargetFramework=net452 /p:TargetFrameworks=net452 /p:BuildNumber=$3 --verbosity normal) -(cd ./src/Nancy.Serialization.Hyperion && exec dotnet pack -c Release /p:TargetFramework=netstandard1.6 /p:TargetFrameworks=netstandard1.6 /p:BuildNumber=$3 --verbosity normal) +(cd ./src/Nancy.Serialization.Hyperion && exec dotnet pack -c Release /p:TargetFramework=net452 /p:TargetFrameworks=net452 /p:BuildNumber=$3 /p:PackageVersion=1.0.1.$3 --verbosity normal) +(cd ./src/Nancy.Serialization.Hyperion && exec dotnet pack -c Release /p:TargetFramework=netstandard1.6 /p:TargetFrameworks=netstandard1.6 /p:BuildNumber=$3 /p:PackageVersion=2.0.1.$3-pre --verbosity normal) (cd ./src/Nancy.Serialization.Hyperion/bin/Release && exec dotnet nuget push *.nupkg -k $ApiKey -s $Source) diff --git a/src/Nancy.Serialization.Hyperion/Nancy.Serialization.Hyperion.csproj b/src/Nancy.Serialization.Hyperion/Nancy.Serialization.Hyperion.csproj index c7c86cf..69ebdc6 100644 --- a/src/Nancy.Serialization.Hyperion/Nancy.Serialization.Hyperion.csproj +++ b/src/Nancy.Serialization.Hyperion/Nancy.Serialization.Hyperion.csproj @@ -1,14 +1,11 @@ - netstandard1.6;net452 + net452;netstandard1.6 0 - 1.0.1.$(BuildNumber) - 2.0.1.$(BuildNumber) - - $(PackVersion) - beta + 1.0.1.$(BuildNumber) + 2.0.1.$(BuildNumber) Armut Teknoloji A.Ş. Provides polymorphic (de)serialization support using Hyperion.