From 3b8e5cc1a4baa2bd8550f8042a55cc1a1eff0218 Mon Sep 17 00:00:00 2001 From: Justin Yoo Date: Sun, 5 Nov 2023 12:36:36 +0900 Subject: [PATCH] Update GHA workflow --- .github/workflows/azure-dev.yaml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/azure-dev.yaml b/.github/workflows/azure-dev.yaml index 2785f85..f70fd46 100644 --- a/.github/workflows/azure-dev.yaml +++ b/.github/workflows/azure-dev.yaml @@ -36,26 +36,32 @@ jobs: with: dotnet-version: 7.x + - name: Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 8.x + dotnet-quality: 'preview' + - name: Restore NuGet packages shell: bash run: | - dotnet restore + dotnet restore src/YouTubeSummariser.sln - name: Build solution shell: bash run: | - dotnet build -c Release + dotnet build src/YouTubeSummariser.sln -c Release - name: Test solution shell: bash run: | - dotnet test -c Release + dotnet test src/YouTubeSummariser.sln -c Release - name: Create artifacts if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch' shell: bash run: | - dotnet publish -c Release + dotnet publish src/YouTubeSummariser.sln -c Release - name: Upload artifact - API if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'workflow_dispatch'