From 25cc42ba632472126d927494b6f26a138489aa9b Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:36:12 +0100 Subject: [PATCH 1/7] Create release.yml Former-commit-id: 8983b94b842bbb72d3d36d09c7965653defe9e5f --- .github/workflows/release.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ffc02b1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,26 @@ +name: NuGet release +on: + push: + branches: + - release + pull_request: + branches: + - release +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Prepare FFMpeg + 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 + - name: Build solution -c Release + run: dotnet build + - name: Run unit tests + run: dotnet test + - name: Publish NuGet package + run: NUPKG=`find . -type f -name FFMpegCore*.nupkg` && dotnet nuget push $NUPKG -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json + From d6810bf917ec441cf5f898298bd8be765e8f9f76 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:48:29 +0100 Subject: [PATCH 2/7] Update release.yml Former-commit-id: 15bedea18350bd16049c45e425b2c1312eed9f91 --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ffc02b1..64994ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,5 +22,6 @@ jobs: - name: Run unit tests run: dotnet test - name: Publish NuGet package + if: github.event.pull_request.merged run: NUPKG=`find . -type f -name FFMpegCore*.nupkg` && dotnet nuget push $NUPKG -k ${{ secrets.NUGET_TOKEN }} -s https://api.nuget.org/v3/index.json From cb945def16eaf435f8c617ef6054b6d5d2c0bc89 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:53:01 +0100 Subject: [PATCH 3/7] 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 From 3d17f53b263313bd77ed20fbde43b12e9859a79e Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:54:54 +0100 Subject: [PATCH 4/7] Update release.yml Former-commit-id: e20d7935ad363c96264778173f8da7dd649b39b5 --- .github/workflows/release.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d88e91a..dd99629 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,8 +1,5 @@ name: NuGet release on: - push: - branches: - - release pull_request: branches: - release From 016806062818efdf7f2ce68fded935046b0e5303 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:57:12 +0100 Subject: [PATCH 5/7] Update release.yml Former-commit-id: 3c09a2041bfe243654058f0cc50c1627b544dd2f --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dd99629..d93af1d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: branches: - release jobs: - build: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 From 1820b96d183863619ec4d9153db1676d930c2af1 Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:57:25 +0100 Subject: [PATCH 6/7] Update ci.yml Former-commit-id: 1223836a24bda2b296eb2c88f63fcda566982144 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4a49128..52702dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: CI on: [push, pull_request] jobs: - build: + ci: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 From dce7d75f67725d2a8ce039231f2a909a9cebe8ba Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 18:00:19 +0100 Subject: [PATCH 7/7] Update ci.yml Former-commit-id: a129c344153b7ed55048485e5a768ac1faf8fdef --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52702dd..824e3bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,5 +1,5 @@ name: CI -on: [push, pull_request] +on: push jobs: ci: runs-on: ubuntu-latest