From f7a325b2e38c36a21269e81499fe53a3ce69b55e Mon Sep 17 00:00:00 2001 From: Malte Rosenbjerg Date: Sun, 29 Jan 2023 22:55:47 +0100 Subject: [PATCH] Cleanup pipelines Former-commit-id: ba2e31c43b0c0533eb37315066545f67fc0a7334 --- .github/workflows/ci.yml | 6 +++--- .github/workflows/release.yml | 21 ++++++++++++--------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c470186..c807872 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,9 +23,9 @@ jobs: uses: actions/checkout@v3 - name: Prepare .NET - uses: actions/setup-dotnet@v2 + uses: actions/setup-dotnet@v3 with: - dotnet-version: '6.0.x' + dotnet-version: '7.0.x' - name: Prepare FFMpeg uses: Iamshankhadeep/setup-ffmpeg@v1.2 @@ -34,4 +34,4 @@ jobs: version: "4.4" - name: Test with dotnet - run: dotnet test --logger GitHubActions + run: dotnet test FFMpegCore.sln --logger GitHubActions diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7cf1425..0c7725b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -8,13 +8,16 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 - - name: Prepare .NET - uses: actions/setup-dotnet@v1 - with: - dotnet-version: '6.0.x' - - name: Build solution - run: dotnet build --output build -c Release - - name: Publish NuGet package - run: dotnet nuget push "build/*.nupkg" --source nuget.org --api-key ${{ secrets.NUGET_TOKEN }} + uses: actions/checkout@v3 + + - name: Prepare .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '7.0.x' + + - name: Build solution + run: dotnet pack FFMpegCore.sln --output build -c Release + + - name: Publish NuGet package + run: dotnet nuget push build/*.nupkg --source nuget.org --api-key ${{ secrets.NUGET_TOKEN }}