push_packages.sh

This commit is contained in:
2022-12-06 23:52:40 +06:00
parent 2876855a3b
commit 3955b0ee7f
4 changed files with 14 additions and 2 deletions

Submodule DTLib.Logging/Ben.Demystifier deleted from f64d655f49

View File

@@ -23,6 +23,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
LICENSE = LICENSE
nuget.config = nuget.config
pack.sh = pack.sh
push_packages.sh = push_packages.sh
EndProjectSection
EndProject
Global

View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="DTLib local" value="./nuget/" />
<add key="local" value="./nuget/" />
<add key="github" value="https://nuget.pkg.github.com/Timerix22/index.json" />
</packageSources>
</configuration>

11
push_packages.sh Normal file
View File

@@ -0,0 +1,11 @@
#!/usr/bin/bash
echo enter github api key:
read -r GHK
echo enter nuget api key:
read -r NGK
for PACK in $(find ./nuget -name '*.nupkg'); do
dotnet nuget push $PACK -k $GHK -s github --skip-duplicate
dotnet nuget push $PACK -k $NGK -s nuget.org --skip-duplicate
done