From 610a5fa3ec37650f7dabd17d65cd161bcdf7d60b Mon Sep 17 00:00:00 2001 From: Pilzinsel64 Date: Mon, 10 Nov 2025 18:19:39 +0100 Subject: [PATCH] add linux deploy --- Publish NuGet packages.bat => deploy-nugets.bat | 0 deploy-nugets.sh | 13 +++++++++++++ 2 files changed, 13 insertions(+) rename Publish NuGet packages.bat => deploy-nugets.bat (100%) create mode 100755 deploy-nugets.sh diff --git a/Publish NuGet packages.bat b/deploy-nugets.bat similarity index 100% rename from Publish NuGet packages.bat rename to deploy-nugets.bat diff --git a/deploy-nugets.sh b/deploy-nugets.sh new file mode 100755 index 0000000..001f98d --- /dev/null +++ b/deploy-nugets.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +sourceP="https://git.pilzinsel64.de/api/v4/projects/8/packages/nuget/index.json" +apikeyP="$GitLab_git_pilzinsel64_de" + +sourceN="https://api.nuget.org/v3/index.json" +apikeyN="$NuGet_ApiKey" + +for pkg in "$@"; do + dotnet nuget push "$pkg" --source "$sourceP" --api-key "$apikeyP" --skip-duplicate + dotnet nuget push "$pkg" --source "$sourceN" --api-key "$apikeyN" --skip-duplicate +done