Skip to content

Commit

Permalink
Update Nugets #2 (#193)
Browse files Browse the repository at this point in the history
* Fixes

* Remove Keys
  • Loading branch information
fassadlr authored Nov 18, 2020
1 parent 30d50dc commit ee89b6a
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 78 deletions.
125 changes: 54 additions & 71 deletions PushNuget.ps1
Original file line number Diff line number Diff line change
@@ -1,95 +1,78 @@

# BASE PROJECTS
rm "src\NBitcoin\bin\debug\" -Recurse -Force
dotnet pack src\NBitcoin --configuration Debug --include-source --include-symbols
dotnet nuget push "src\NBitcoin\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\NBitcoin\bin\Release\" -Recurse -Force
dotnet pack src\NBitcoin --configuration Release --include-source --include-symbols
dotnet nuget push "src\NBitcoin\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin\bin\release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

#FEATURES PROJECTS
rm "src\Stratis.Bitcoin.Features.Api\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Api --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Api\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Api\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Api --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Api\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.BlockStore\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.BlockStore --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.BlockStore\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.BlockStore\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.BlockStore --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.BlockStore\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.Consensus\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Consensus --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Consensus\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Consensus\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Consensus --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Consensus\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.Dns\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Dns --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Dns\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Dns\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Dns --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Dns\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.LightWallet\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.LightWallet --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.LightWallet\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.LightWallet\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.LightWallet --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.LightWallet\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.MemoryPool\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.MemoryPool --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.MemoryPool\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.MemoryPool\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.MemoryPool --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.MemoryPool\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.Miner\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Miner --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Miner\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Miner\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Miner --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Miner\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.PoA\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.PoA --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.PoA\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.PoA\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.PoA --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.PoA\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.Notifications\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Notifications --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Notifications\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Notifications\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Notifications --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Notifications\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.RPC\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.RPC --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.RPC\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.RPC\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.RPC --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.RPC\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.Wallet\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Wallet --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Wallet\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.Wallet\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.Wallet --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.Wallet\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.WatchOnlyWallet\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.WatchOnlyWallet --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.WatchOnlyWallet\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Features.WatchOnlyWallet\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.WatchOnlyWallet --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.WatchOnlyWallet\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Networks\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Networks --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Networks\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Bitcoin.Networks\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Networks --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Networks\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Features.Collateral\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Features.Collateral --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Features.Collateral\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Features.Collateral\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Features.Collateral --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Features.Collateral\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Features.FederatedPeg\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Features.FederatedPeg --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Features.FederatedPeg\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"

# TESTS PROJECTS
rm "src\Stratis.Bitcoin.IntegrationTests.Common\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.IntegrationTests.Common --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.IntegrationTests.Common\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Tests.Common\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Tests.Common --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Tests.Common\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Tests.Wallet.Common\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Tests.Wallet.Common --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Tests.Wallet.Common\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"

rm "src\Stratis.Bitcoin.Features.PoA.IntegrationTests.Common\bin\debug\" -Recurse -Force
dotnet pack src\Stratis.Bitcoin.Features.PoA.IntegrationTests.Common --configuration Debug --include-source --include-symbols
dotnet nuget push "src\Stratis.Bitcoin.Features.PoA.IntegrationTests.Common\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\Stratis.Features.FederatedPeg\bin\Release\" -Recurse -Force
dotnet pack src\Stratis.Features.FederatedPeg --configuration Release --include-source --include-symbols
dotnet nuget push "src\Stratis.Features.FederatedPeg\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

# TOOLS PROJECTS

rm "src\FodyNlogAdapter\bin\debug\" -Recurse -Force
dotnet pack src\FodyNlogAdapter --configuration Debug --include-source --include-symbols
dotnet nuget push "src\FodyNlogAdapter\bin\debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "src\FodyNlogAdapter\bin\Release\" -Recurse -Force
dotnet pack src\FodyNlogAdapter --configuration Release --include-source --include-symbols
dotnet nuget push "src\FodyNlogAdapter\bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"

PAUSE
10 changes: 5 additions & 5 deletions PushSCNuget.ps1
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
$packageNames = @("Stratis.Sidechains.Networks","Stratis.SmartContracts.CLR", "Stratis.SmartContracts.CLR.Validation", "Stratis.SmartContracts.Core", "Stratis.SmartContracts.Networks","Stratis.SmartContracts.RuntimeObserver", "Stratis.Bitcoin.Features.SmartContracts")
$packageNames = @("Stratis.Sidechains.Networks","Stratis.SmartContracts.CLR", "Stratis.SmartContracts.CLR.Validation", "Stratis.SmartContracts.Core", "Stratis.SmartContracts.Networks","Stratis.SmartContracts.RuntimeObserver", "Stratis.Bitcoin.Features.SmartContracts", "Stratis.SmartContracts.RuntimeObserver")

# A little gross to have to enter src/ and then go back after, but this is where the file is atm
cd "src"

foreach ($packageName in $packageNames){
cd $packageName
rm "bin\debug\" -Recurse -Force -ErrorAction Ignore
dotnet pack --configuration Debug --include-source --include-symbols
dotnet nuget push "bin\Debug\*.symbols.nupkg" --source "https://api.nuget.org/v3/index.json"
rm "bin\Release\" -Recurse -Force -ErrorAction Ignore
dotnet pack --configuration Release --include-source --include-symbols
dotnet nuget push "bin\Release\*.symbols.nupkg" -k "" --source "https://api.nuget.org/v3/index.json"
cd ..
}

cd ..
cd ..
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.0.2.0</Version>
<Version>4.0.0.0</Version>
<Authors>Stratis Group Ltd.</Authors>
</PropertyGroup>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<DebugType>Full</DebugType>
<CodeAnalysisRuleSet>..\None.ruleset</CodeAnalysisRuleSet>
<Authors>Stratis Group Ltd.</Authors>
<Version>1.0.2.0</Version>
<Version>4.0.0.0</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit ee89b6a

Please sign in to comment.