From 25cc42ba632472126d927494b6f26a138489aa9b Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Fri, 21 Feb 2020 17:36:12 +0100 Subject: [PATCH] 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 +