From cb945def16eaf435f8c617ef6054b6d5d2c0bc89 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:53:01 +0100 Subject: [PATCH] Update release.yml Former-commit-id: 43a0fb1b7af6785f2fe86d1550d2da3c57168f80 --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64994ca..d88e91a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,6 +12,7 @@ jobs: steps: - uses: actions/checkout@v1 - name: Prepare FFMpeg + if: github.event.pull_request.merged == false run: sudo apt-get update && sudo apt-get install -y ffmpeg - name: Setup .NET Core uses: actions/setup-dotnet@v1 @@ -20,8 +21,9 @@ jobs: - name: Build solution -c Release run: dotnet build - name: Run unit tests + if: github.event.pull_request.merged == false run: dotnet test - name: Publish NuGet package - if: github.event.pull_request.merged + if: github.event.pull_request.merged == true run: NUPKG=`find . -type f -name FFMpegCore*.nupkg` && dotnet nuget push $NUPKG -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json