From 4f46b5323e2b7113ffc5d38ebad455d651b30ea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilmar=20G=C3=BAstafsson?= Date: Mon, 11 Jul 2022 13:42:16 +0000 Subject: [PATCH 1/2] ci(nuget): publish to official nuget source in CI as well --- .github/workflows/nuget.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 065fb28..0ff5e2a 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -22,5 +22,7 @@ jobs: - run: dotnet test --configuration Release /p:Version=${VERSION} --no-build - run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output . - run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://nuget.pkg.github.com/podimo/index.json --api-key ${GITHUB_TOKEN} + - run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NUGET_KEY: ${{ secrets.NUGET_KEY }} From e4784ab99e7eee8f7170d1a543823ee06af65c5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hilmar=20G=C3=BAstafsson?= Date: Mon, 11 Jul 2022 13:45:45 +0000 Subject: [PATCH 2/2] ci(nuget): stop publishing to private nuget feed --- .github/workflows/nuget.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index 0ff5e2a..95b632d 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -21,8 +21,6 @@ jobs: - run: dotnet build --configuration Release /p:Version=${VERSION} - run: dotnet test --configuration Release /p:Version=${VERSION} --no-build - run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output . - - run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://nuget.pkg.github.com/podimo/index.json --api-key ${GITHUB_TOKEN} - run: dotnet nuget push Podimo.ConstEmbed.${VERSION}.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY} env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NUGET_KEY: ${{ secrets.NUGET_KEY }}