From 129bb72d8092a5562180aa818e9e8ede8205f0da Mon Sep 17 00:00:00 2001 From: Alexandru Macocian Date: Tue, 22 Mar 2022 13:13:07 +0100 Subject: [PATCH 1/3] Manually push nuget instead of relying on premade action --- .github/workflows/cd.yaml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 2365aec..aac894a 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -4,6 +4,9 @@ on: push: branches: - master + pull_request: + branches: + - master jobs: @@ -45,9 +48,8 @@ jobs: - name: Build Sybil project run: dotnet build Sybil -c $env:Configuration - - name: Push nuget package - uses: brandedoutcast/publish-nuget@v2.5.5 - with: - PROJECT_FILE_PATH: Sybil\Sybil.csproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} - \ No newline at end of file + - name: Package + run: dotnet pack -c Release -o . $env:Source_Project_Path + + - name: Publish + run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json \ No newline at end of file From 39bf1a5e520ecbe5ee297907bf84c6fb88624486 Mon Sep 17 00:00:00 2001 From: Alexandru Macocian Date: Tue, 22 Mar 2022 13:14:32 +0100 Subject: [PATCH 2/3] Skip duplicates --- .github/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index aac894a..024bbab 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -52,4 +52,4 @@ jobs: run: dotnet pack -c Release -o . $env:Source_Project_Path - name: Publish - run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json \ No newline at end of file + run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} -source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file From 11890614d4b106dedcb0de5c0dad70a2834ec822 Mon Sep 17 00:00:00 2001 From: Alexandru Macocian Date: Tue, 22 Mar 2022 13:20:14 +0100 Subject: [PATCH 3/3] Fix typo --- .github/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cd.yaml b/.github/workflows/cd.yaml index 024bbab..0a2366e 100644 --- a/.github/workflows/cd.yaml +++ b/.github/workflows/cd.yaml @@ -52,4 +52,4 @@ jobs: run: dotnet pack -c Release -o . $env:Source_Project_Path - name: Publish - run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} -source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file + run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate \ No newline at end of file