From 97d3cc82c2da6c34a78e97b4e64b6508c07dfcdd Mon Sep 17 00:00:00 2001 From: Yang Chun Ung Date: Sat, 16 Sep 2023 21:18:41 +0900 Subject: [PATCH 1/2] Publish Lib9c.Abstractions for Lib9c dependency --- .github/workflows/publish.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index c72bd7028d..01869c06e5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -31,9 +31,12 @@ jobs: if: github.event_name != 'pull_request' run: | if [[ "$NUGET_API_KEY" != "" ]]; then - dotnet nuget push ./Lib9c/.bin/Lib9c.*.nupkg \ - --api-key "$NUGET_API_KEY" \ - --source https://api.nuget.org/v3/index.json + for project in Lib9c Lib9c.Abstractions + do + dotnet nuget push ./$project/.bin/Lib9c.*.nupkg \ + --api-key "$NUGET_API_KEY" \ + --source https://api.nuget.org/v3/index.json + done fi env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} From 0f64a7e1978ba471d816d5f529b5457a03fb1660 Mon Sep 17 00:00:00 2001 From: moreal Date: Mon, 18 Sep 2023 07:48:38 +0900 Subject: [PATCH 2/2] ci(gh-actions): run nuget push with `--skip-duplicate` --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 01869c06e5..8191a59ac9 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -35,6 +35,7 @@ jobs: do dotnet nuget push ./$project/.bin/Lib9c.*.nupkg \ --api-key "$NUGET_API_KEY" \ + --skip-duplicate \ --source https://api.nuget.org/v3/index.json done fi