From 56da381a522d4eaf55224ad4881065e5b7ef81ce Mon Sep 17 00:00:00 2001 From: Quinn <99677023+thepigeongenerator@users.noreply.github.com> Date: Wed, 19 Jun 2024 15:47:39 +0200 Subject: [PATCH] add storing password in plain text --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index bce5d95..ab10df1 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -31,6 +31,6 @@ jobs: # push nuget repo (package is created on build as the configuration in the csproj file) - name: add nuget package to repo run: | - echo "secrets.PACKAGE_MANAGEMENT: ${{ secrets.PACKAGE_MANAGEMENT }}" - dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name "github" --username ${{ github.repository_owner }} --password ${{ secrets.PACKAGE_MANAGEMENT }} + if [[ -z "${{ secrets.PACKAGE_MANAGEMENT }}" ]]; then echo -e "\033[91no token was set!\033[0m" && exit -1; fi + dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json --name "github" --username ${{ github.repository_owner }} --password ${{ secrets.PACKAGE_MANAGEMENT }} --store-password-in-clear-text dotnet nuget push "QUtil/bin/Release/QUtil.MonoGame.Render*.nupkg" --source "github" --skip-duplicate --no-symbols