From d995c0757c3e17c118d62a68fb3d9faef57fbf05 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Wed, 13 May 2020 00:07:18 +0200 Subject: [PATCH] Update release.yml Former-commit-id: d55127a0f73f0ae21faa0c965680e9d0d43d437f --- .github/workflows/release.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e493755..b20d192 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,7 +1,6 @@ name: NuGet release on: - pull_request: - types: [opened, closed] + push: branches: - release jobs: @@ -10,18 +9,15 @@ 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 with: - dotnet-version: 3.1.101 + dotnet-version: 3.1 - 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 == 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