From ad00a45cf0aa7f69e261f114ad2060afe3bc5ebf Mon Sep 17 00:00:00 2001 From: Viktor Molostov <86685532+ConcreteEcho@users.noreply.github.com> Date: Tue, 21 Nov 2023 22:39:40 +0300 Subject: [PATCH] add step for github packages publish (#1) --- .github/workflows/nuget.yml | 9 ++++++++- .../Fluent.Structures.Model.csproj | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/nuget.yml b/.github/workflows/nuget.yml index dd33604..d54a408 100644 --- a/.github/workflows/nuget.yml +++ b/.github/workflows/nuget.yml @@ -48,6 +48,13 @@ jobs: name: nupkg path: . - - name: Publish NuGet Package + - name: Publish NuGet Package to nuget.org run: | dotnet nuget push --skip-duplicate *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} + + - name: Add source for nuget registry on github + run: | + dotnet nuget add source "https://nuget.pkg.github.com/ConcreteEcho/index.json" --username ConcreteEcho --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text -n github + + - name: Publish NuGet Package to github.com + run: dotnet nuget push --skip-duplicate *.nupkg --source github diff --git a/src/Fluent.Structures.Model/Fluent.Structures.Model.csproj b/src/Fluent.Structures.Model/Fluent.Structures.Model.csproj index 4b4e3b4..05a6edc 100644 --- a/src/Fluent.Structures.Model/Fluent.Structures.Model.csproj +++ b/src/Fluent.Structures.Model/Fluent.Structures.Model.csproj @@ -7,7 +7,7 @@ latestmajor Fluent.Structures.Model 0.1.1 - Victor Molostov + ConcreteEcho Fluent.Structures.Model Fluent.Structures.Model Tekla