Skip to content

Commit 78d7c75

Browse files
committed
📝 Chore(Actions): Optimized.
1 parent fba7768 commit 78d7c75

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,18 @@ jobs:
4848
dotnet test -c Release
4949
5050
- name: Add to GitHub Repo
51-
if: ${{ matrix.os == 'ubuntu-latest' }}
51+
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
5252
run: |
5353
nuget sources add -name github -Source https://nuget.pkg.github.com/Crequency/index.json -Username Crequency -Password ${{ secrets.GitHubToken }}
5454
5555
- name: Install NuGet
56-
if: ${{ matrix.os == 'ubuntu-latest' }}
56+
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
5757
uses: nuget/setup-nuget@v1
5858
with:
5959
nuget-version: "6.x"
6060

6161
- name: Publish Package to GitHub and NuGet
62-
if: ${{ matrix.os == 'ubuntu-latest' }}
62+
if: ${{ matrix.os == 'ubuntu-latest' && github.event_name != 'pull_request' }}
6363
run: |
64-
nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol
65-
nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source github -SkipDuplicate
64+
nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source github -SkipDuplicate -Verbosity detailed
65+
nuget push ./Common.BasicHelper/bin/Release/*.nupkg -Source https://api.nuget.org/v3/index.json -SkipDuplicate -ApiKey ${{ secrets.NugetKey }} -NoSymbol -Verbosity detailed

0 commit comments

Comments
 (0)